Subscription Information
This feature is supported on the Self-Hosted platform, with an Enterprise X or Enterprise+ license.
The load balancer is the entry point to your high availability installation and optimally distributes requests to the server nodes in your system. You will need to setup your load balancer.
How does it work?
Once the Artifactory node receives the request from the load balancer, the Artifactory router is responsible to forward each request to the JFrog services (Xray and Distribution) accordingly.
For more information about the complete system overview, see System Architecture.
Set up Your Load Balancer
JFrog supports using a reverse proxy, which is a type of proxy server that retrieves resources from one or more servers. In HA configurations, you will need to use a load balancer instead of a reverse proxy. One load balancer is required per JFrog Platform Deployment (JPD). The load balancer should be configured to the Artifactory instances in your JPD. For more information, see Using a Load Balancer in High Availability Setups.
TLS Enabled
If you have enabled TLS in your JFrog Platform Deployment, your JFrog Router blocks all non-TLS connections. Therefore, you will need to set up a secure connection between your Load Balancer and your JFrog Platform Deployment as well.
To do that you will need to add the JPD TLS certificate to your load balancer key store. For more information, see Managing TLS Certificates.
Configure Health Check
Use the following end points for configuring the health check for your load balancer for the JFrog Platform. For more information, see SYSTEM & CONFIGURATION REST APIs.
System Health Ping
Description: Get a simple status response about the state of Artifactory.
Since: 2.3.0
Security: Requires a valid user (can be anonymous).
Usage: GET /api/system/ping
Produces: text/plain
Sample Output:
GET /api/system/ping OK
Response status codes:
200 - Successful request with an 'OK' text if Artifactory is working properly, if not will return an HTTP error code with a reason.
Readiness Probe
Description: The readiness probe, which essentially replaces the system/ping (above), returns a simple status response about the state of Artifactory using the new Kubernetes style readiness probe (the system/ping will remain in place for legacy systems still depending on it). The probe can be used to measure the system latency, provides customers with an important metric to monitor according to their standard.
Since: 7.31.x
Security: Requires a valid user (can be anonymous).
Usage: GET /api/v1/system/readiness
Produces: application/json
Sample Output:
{ "code": "OK" }
Response status codes:
200 - Successful request with an 'OK' text if Artifactory is working properly, if not will return an HTTP error code with a reason
Liveness Probe
Description: Get a status response to know when a container is ready to start accepting traffic.
Since: 7.31.x
Security: Requires a valid user (can be anonymous).
Usage: GET /api/v1/system/liveness
Produces: application/json
Sample Output:
{ "code": "OK" }
Response status codes:
200 - Successful request with an 'OK' text if working properly; if not will return an HTTP error code with a reason