-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow use of slot based collator in parachain template #5007
Conversation
Adds an `--experimental-use-slot-based` CLI parameter to the default parachain template, | ||
which enables the slot based collator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must also mention that it should only be used to enable elastic scaling on the client.
/// | ||
/// Use with care, this flag is unstable and subject to change. | ||
#[arg(long)] | ||
pub experimental_use_slot_based: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The slot based collator is just an implementation detail, which is likely not going to be of interest to node operators, they would only care to enable the elastic scaling.
So, why not just --elastic-scaling
? In the future slot based collator will be used for everything, but for the time being this is only the only way to enable elastic scaling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this is in the end only for people who want to test the bleeding edge. The CLI flag will vanish at some point.
If we go with elastic scaling we should at least keep --experimental-elastic-scaling
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced that this is a good idea. The template is currently the entry into developing parachains. I think it should be streamlined and as simple as possible.
/// | ||
/// Use with care, this flag is unstable and subject to change. | ||
#[arg(long)] | ||
pub experimental_use_slot_based: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this is in the end only for people who want to test the bleeding edge. The CLI flag will vanish at some point.
If we go with elastic scaling we should at least keep --experimental-elastic-scaling
.
Yeah, we don't want this in the template. This is highly experimental. The guide can just reference |
This will make it possible to use docify for #4663