-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
falcon做成linux服务以及对mysql,redis等的依赖问题 #941
Comments
@lovepanda603 可以在falcon进程启动之前,check 一下 mysql 和 redis 是否已经成功启动。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下面我放在/etc/init.d/falcon的服务
我的mysql和redis是放在另一台服务器的,但是如果机房停电然后来电后,falcon的服务有可能起不来,自己用两台虚拟机模拟也可以,原因是mysql和redis的启动在falcon之后,falcon又依赖mysql和redis,否则falcon会有几个依赖这些的起不来,请问这种情况是否有什么办法解决呢?或者说falcon有类似于java的连接池之类的机制,让服务先起来等待mysql和redis启动,再正常接收数据,不影响服务先启动,否则服务起不来很不好维护。
当然如果有一些脚本能够对falcon的服务做监控来自动启动也可以,或者守卫之类的。
The text was updated successfully, but these errors were encountered: