Horizon: Excessive use of Redis databases

Created on 26 Jul 2017  Â·  8Comments  Â·  Source: laravel/horizon

By default Horizon uses Redis databases 9, 10, 11, 12, 13, 14, 15 for jobs, supervisors, tags, metrics, locks, etc.

I'm sure it makes sense to avoid userland namespace conflicts, like job:{id}.

Can Horizon be configured to only use one or two databases? Are there any drawbacks to that? Maybe all Horizon keys could be prefixed with horizon:?

I'm asking because a lot of Redis hosting providers only supply a single database 0, some offer more in higher tiers, very few offer 16 out of the box.

Most helpful comment

All 8 comments

Any chance you could link a few redis providers? Since redis itself offers 16 databases out of the box, i'd be surprised any provider didn't offer the same functionality

Even when hosting it myself I would like to contain Horizon to a single redis db tbh.

@alexbowers Redis Cluster does not support multiple databases like the stand alone version of Redis.

Ah, I was not aware. In that case, support

On 27 Jul 2017, at 08:24, Vignesh Gurusamy notifications@github.com wrote:

@alexbowers Redis Cluster does not support multiple databases like the stand alone version of Redis.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Right, that's a good point:

Redis Cluster does not support multiple databases like the stand alone version of Redis. There is just database 0 and the SELECT command is not allowed.

Taken care of, Horizon now ises a single database and a prefix.

Taken care of, Horizon now ises a single database and a prefix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crash13override picture crash13override  Â·  5Comments

marianvlad picture marianvlad  Â·  5Comments

dmitryuk picture dmitryuk  Â·  3Comments

RicardoRamirezR picture RicardoRamirezR  Â·  3Comments

vesper8 picture vesper8  Â·  5Comments