How to monitor if Bitbucket Server is up and running
プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。
Administrators may wish to monitor if Bitbucket Server is up and running at any given time. This can also be used as a health check status endpoint for load balancers or proxies. This article suggests a simple approach to address this requirement.
For monitoring if your Bitbucket Server is up, you can periodically send the
<Bitbucket_Base_URL>/status request and interpret the response received to such request.
For example, the following command:
will return one of the following responses, depending on the current status of your Bitbucket Server:
|Response||HTTP response code||意味|
|その他||Tomcat/Bitbucket Server is too busy to respond to this request.|
|503||The application is starting up, but not yet available Not yet ready to receive in-coming requests. It is optional to forward requests in this state. Users will see the Starting Bitbucket with the progress bar and Git requests will be queued until Bitbucket is ready for them. Requests could time out.|
The application is running for the first time and has not yet been configured. All requests to the web UI will be redirected to the First Run Wizard. Not ready to receive in-coming requests but request should still be forwarded to Bitbucket.
|200||Bitbucket is up and running Ready to receive in-coming requests.|
|200||The application is currently not available because the application is under maintenance. Blocking with the Load Balancer or proxy could block Bitbucket from coming out of maintenance mode. Should allow in-coming requests.|
|500||The application is currently not available because of an error. Not ready to receive in-coming requests.|
|503||The application is shutting down.|
- If you have Bitbucket Data Center, with multiple nodes accessed via Load Balancer, you will need to send these requests directly to the individual nodes.
- For more advanced scenarios, please consult: Bitbucket Data Center sample deployment and monitoring strategy