Also, I had some questions about the persistence q...
# support
m
Also, I had some questions about the persistence queue, details in thread:
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
m
I am using the following config to create the queue:
Copy code
this.provider.createPersistenceQueue(
          {
            isMultiProcessor: true,
            redisOpts: {
              host: '<>',
              port: <>,
              password: '<>',
            },
          },
          (err) => {
            if (err) this.logger.warn({ err }, 'Error in RudderAnalytics createPersistenceQueue');
            else this.logger.log('RudderAnalytics createPersistenceQueue successful');
          },
        );
The number of events after initializing the queue kept on increasing constantly. I was wondering if I can start an extra background worker to perform tasks
m
Hi Aditya so the events failed to send and the queue size kept increasing. I am not sure how you would start your own background worker to check performance.
m
Hi @shy-kite-21035, The events actually were successful. As evident in the screenshots below, the sorted set
completed
is constantly increasing, representing that the events that were sent across. But since there’s no ttl on the entries, they keep on aggregating until redis runs out of memory
Also, is it possible to expose these params from bull as optional config options in Rudder Node-SDK https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queueadd This would mean the consumers can define how redis will behave as per their needs. cc <!subteam^S04QT1G74Q3|@sdk-team>
h
Also, is it possible to expose these params from bull as optional config options in Rudder Node-SDK
https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queueadd
This would mean the consumers can define how redis will behave as per their needs.
Right now SDK is not built that way to expose this options. We can take it as a feature request.
m
Thanks, that would be great. Any resolution to the above problem that you know of?
Any solution to this team? The persistence queue keeps on growing till it crashes.