paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.85k stars 668 forks source link

Number of simultaneously running parachains with one relaychain #4731

Closed f33r0 closed 4 months ago

f33r0 commented 4 months ago

Hello, I have encountered a problem that I can't launch more than two parachains registered in one chainspec. In the registration field, you can see all three, but in fact, only two work, the last third one cannot correctly import block 1 and endlessly reports its import.

Question: are there any parameters in the chainspec that limit the number of parachains per relaychain?

relaychain chainspec: rococo-local parachains: karura-local, polkadot-local, asset-hub-rococo-local

eskimor commented 4 months ago

How many validators does your relay chain have? Also some log output might be helpful. Can you share the polkadot js chain state output for paraScheduler -> claimQueue please?

f33r0 commented 4 months ago

How many validators does your relay chain have? Also some log output might be helpful. Can you share the polkadot js chain state output for paraScheduler -> claimQueue please?

  1. A have two validators
  2. Logs are not contains something interesting
  3. 
    [
    {
    core: 0
    paraId: 1,000
    kind: Parachain
    groupIdx: 0
    }
    {
    core: 1
    paraId: 2,000
    kind: Parachain
    groupIdx: 1
    }
    {
    core: 2
    paraId: 2,011
    kind: Parachain
    groupIdx: 2
    }
    ]
eskimor commented 4 months ago

With two validators you can not have more than 2 cores/parachains at the same time. Simply spawning at least one more validator should resolve your issue.

f33r0 commented 4 months ago

With two validators you can not have more than 2 cores/parachains at the same time. Simply spawning at least one more validator should resolve your issue.

Can you tell me please, how to add validators? If I already use Alice, Bob? Just add Charlie?

I meant, without modify the chainspec

eskimor commented 4 months ago

The easiest way to run test networks is Zombienet.

pepoviola commented 4 months ago

Hi @f33r0, ping me if you need help with the zombienet setup. Running this network should be straight forward. Thx!

f33r0 commented 4 months ago

sorry, I have to using standard deploy without "launchers" like a zombienet. This is not the correct approach

f33r0 commented 4 months ago

is there any table that shows the compatibility of polkadot-parachain and polkadot versions (as relaychain)?

eskimor commented 4 months ago

Vastly backwards compatible. Most of the time you just want to upgrade to get bug fixes/support for features like asynchronous backing.

f33r0 commented 4 months ago

So, relaychain validator number 3 was helped. One more question: aura key - sr25519 right?

sandreim commented 4 months ago

Yes!

f33r0 commented 4 months ago

Thank you a lot!