jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
525 stars 223 forks source link

Artifactory services restart sequentially based on conditions #1835

Open vivuu1989 opened 1 year ago

vivuu1989 commented 1 year ago

Our Jfrog Artifactory is hosted in Linux machine and We have X ray running in another machine. Also The Artifactory and Xrays having their own databases in anoher Postgressql db server. Whenever we have some maintenance activities, we would need to start the servers in a n order. Like first DB servers need to be up, then artifactory and then Xray servers.

Since these servers are managed by another team, once the servers are started by them after the maintenance activities, we are looking for some automated way to start these services in defined sequential way.

1) From Artifactory server(RTServer) and Xray Server(XRServer) need to ensure the DB server (PSDBServer)is UP, and The DBs are reachable. 2) If DBs are reachable, First in RTServer start the jfrog artifactory service. 3) Once the RTServer is up and Artifactory service is runing, From XRServer ensure the DB server (PSDBServer)is UP, and The DBs are reachable 4) if the PSDBServer is up and dbs are reachable , start the Xray service in XRServer

eyalbe4 commented 1 year ago

@vivuu1989, Since you opened this issue on the repository which hosts the source code of JFog CLI, and your question doesn't seem to be related to this application, I would recommend contacting JFrog Support with this question.