#createGatewayManager() spawn wrong amount of worker

1 messages · Page 1 of 1 (latest)

stoic violet
#

@civic peak there should not be an issue because it works fine on many big bots in production. Can you give more details on the code ur using and the version of dd and also how big ur bot is

stoic violet
#

this looks like it worked?

#

properly no?

#

thats what u put

#

1 shard per worker

#

What are you trying to make it do?

stoic violet
#
const gateway = createGatewayManager({
    token: process.env.Token,
    intents: Intents.Guilds | Intents.GuildMessages,
    totalShards: 3,
    shardsPerWorker: 1,
    totalWorkers: 16,
    connection: await REST.getSessionInfo(),
    events: {},
});

This is 3 workers. 1 shard per worker. Because you have 3 total shards and 1 shard per worker.

#
const gateway = createGatewayManager({
    token: process.env.Token,
    intents: Intents.Guilds | Intents.GuildMessages,
    totalShards: 3,
    shardsPerWorker: 3,
    totalWorkers: 16,
    connection: await REST.getSessionInfo(),
    events: {},
});
#

this should spawn 1 worker with 3 shards

stoic violet
#

thats weird

#

ur code looks good

#

@knotty spear @blissful burrow if yall get a chance, could yall try and replicate this for me plz