Skip to content
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

Closed

Conversation

alindima
Copy link
Contributor

This will make it possible to use docify for #4663

@alindima alindima added the T9-cumulus This PR/Issue is related to cumulus. label Jul 11, 2024
@alindima alindima requested a review from skunert July 11, 2024 14:53
Comment on lines +6 to +7
Adds an `--experimental-use-slot-based` CLI parameter to the default parachain template,
which enables the slot based collator.
Copy link
Contributor

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,
Copy link
Contributor

@sandreim sandreim Jul 11, 2024

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.

Copy link
Contributor

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.

Copy link
Contributor

@skunert skunert left a 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,
Copy link
Contributor

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.

@bkchr
Copy link
Member

bkchr commented Jul 11, 2024

Yeah, we don't want this in the template. This is highly experimental. The guide can just reference polkadot-parachains directly.

@bkchr bkchr closed this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T9-cumulus This PR/Issue is related to cumulus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants