question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A process cannot open multiple redis instances?

See original GitHub issue

Hi, I want to create two queue in my process.But only the first queue created is useful.0

    var kue = require('kue');
    var queue2 = kue.createQueue({
        redis: {
            post: 6379,
            host: "127.0.0.1",
            db: 2,
        }
    });
    var queue3 = kue.createQueue({
        redis: {
           post: 6379,
           host: "127.0.0.1",
           db: 3,
        }
    });
    // create job
    queue2.create('test2', {x: 2}).save()
    queue3.create('test3', {x: 3}).save()

when I check the queue, the queue2 has two job. queue3 has none job; How can I create multiple queue in one process? Thanks.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
utsavkesharwanicommented, Mar 20, 2018

Hi,

I just came across this issue. When can we expect the new release with the fix? 😮

0reactions
BarryCarlyoncommented, Apr 3, 2018

+1 to this. Tried it today without thinking and was confused when the second queue job appeared in the first queue.

Seems the only “fix”/solution right now is to JSON API post to the second queue? (Which works for queue create which is fine for me)

But, yeah, gonna need separate processes if you wanna consume two queues. (Which matches my setup anyway)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to setup and run multiple Redis server instances on a ...
We have a Redis instance running on Ubuntu 14.04, and we want to setup a second Redis instance. 1. Existing Redis Server1 instance...
Read more >
Run multiple Redis Instances on your Machine | by Dileep
There are multiple methods to install Redis. we are discussing here the simplest one. Funda : Main idea is to run Redis-server on...
Read more >
MSOpenTech Redis – Multiple instances on same machine
You can run the same executable multiple times starting redis-server with different configurations, either using a file ...
Read more >
Is installing multiple redis instances on the server a good idea?
At Stack Exchange we run multiple instances of Redis on a single server and we have never seen any issues: [kbrandt@ny-redis01: ~] ps...
Read more >
running multiple redis instances on the same server
Generally , redis runs as a background process that listens to a specific port (6379 by default) for incoming requests from clients. Running ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found