Example check_status.sh for checking status of services in a service group#9
Example check_status.sh for checking status of services in a service group#9beepsoft wants to merge 1 commit intometadatacenter:developfrom
Conversation
|
I am happy to add something similar, but I have a question/suggestion: I am wondering if this mechanism does not work for you for some reason, because this should resolve the same issue as you are trying to resolve, but at a more granular level. |
|
Yes, you are right the wait-* scripts take care of this kind of synchronization as well. I somehow found problems with the intial infra/microservice startups when the docker images gets built. Maybe it was some other problem on my side or some bad configuration, but I only got consistent results when making sure that infra is ready when I start the microservices. Anyway, querying "service groups" maybe useful in other use cases as well. |
This is just to give you an idea for a possible addition to cedarcli: we have this script to check whether all services in a service group like Infrastrucure, Microservice, Frontend, etc (names used by
cedarcli server status) are all up and running. This allows us to runstartinfrastructurein the background and then usingcheck_status.sh Infrastructurecheck when all infra services are up and running. If they are (the scripts report "OK"), then we can start dependent services likestartmicroservices, and so on.