Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive use of Redis databases #11

Closed
tillkruss opened this issue Jul 26, 2017 · 8 comments
Closed

Excessive use of Redis databases #11

tillkruss opened this issue Jul 26, 2017 · 8 comments

Comments

@tillkruss
Copy link

tillkruss commented Jul 26, 2017

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.

@alexbowers
Copy link

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

@stayallive
Copy link
Contributor

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

@tillkruss
Copy link
Author

@alexbowers:

@vigneshgurusamy
Copy link
Contributor

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

@alexbowers
Copy link

alexbowers commented Jul 27, 2017 via email

@tillkruss
Copy link
Author

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.

@themsaid
Copy link
Member

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

1 similar comment
@themsaid
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants