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

redis-server stops around 24 hours #1

Open
bjjay opened this issue May 2, 2012 · 10 comments
Open

redis-server stops around 24 hours #1

bjjay opened this issue May 2, 2012 · 10 comments

Comments

@bjjay
Copy link

bjjay commented May 2, 2012

Do you find this problem? I don't know why, redis-server process isn't existed, but the files redis.pid and redis.sock are still existed.

@razorinc
Copy link
Owner

razorinc commented May 3, 2012

I think is something related with memory. I'm currently investigating this problem with guys from openshift on freenode...

@snitramodranoel
Copy link

Are there any updates on this issue? I'm very interested in deploying Redis with my application.

@bjjay
Copy link
Author

bjjay commented Jun 28, 2012

No update on this issue, I guess.

@razorinc
Copy link
Owner

razorinc commented Jul 8, 2012

@snitramodranoel @bjjay I forgot to update the bug, i solved with a trivial cron job that check if the redis-server is running or not. But anyway, I think the openshift team is already working on a cartridge for redis :)

@bjjay
Copy link
Author

bjjay commented Jul 9, 2012

Greet!

@snitramodranoel
Copy link

Thanks for the tip. Anyways, there's a poll about a redis cartridge on the OpenShift community web site. Maybe you guys already know about it. Let's spread the word and ask for votes ;)

@snitramodranoel
Copy link

@razorinc I suppose the issue is due to how OpenShift is implemented with SELinux. I'm not an OpenShift developer, but I bet this will only be solved for real when a redis cartridge is out. That's my two cents.

@razorinc
Copy link
Owner

@snitramodranoel Leonardo, I don't think is SELinux itself, but for sure, when the cartdrige will come out, would be way more easy to use it :) //cc @marekjelen

@rw950431
Copy link

rw950431 commented Sep 3, 2012

Still no cartridge it seems. To add more details to @razorinc's answer.

Add cron cartridge to your app using procedure at https://openshift.redhat.com/community/blogs/getting-started-with-cron-jobs-on-openshift

script file in .openshift/cron/hourly/redis-check.sh containing
#!/bin/sh
kill -0 cat ${OPENSHIFT_RUN_DIR}/redis.pid || ${OPENSHIFT_DATA_DIR}/redis/bin/redis-server ${OPENSHIFT_DATA_DIR}/redis/bin/redis.conf

Then
$ git add .openshift/cron/hourly/redis-check.sh
$ git commit -a -m "add redis-server check cron job"
$ git push origin

@rw950431
Copy link

rw950431 commented Nov 9, 2012

Corrected about script since Openshift fiddled with their enviroment variables see here

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

4 participants