Application
HA presents a cluster of two or more nodes that share common resources. Each cluster node runs all microservices, described in theSystem Architecture.
Server Cluster
Each server in the cluster can be comprised of multiple nodes. Each node will receives requests routed to it by the load balancer.All nodes share a set of common resources, like a database and a files store. Clustering those common resources is not part of the server cluster, and you should follow the documentation of your selected common resources to set that. The common resources are also used by the server cluster nodes to communicate with each other to ensure that they are synchronized on all transactions.
Local Area Network
To ensure good performance and synchronization of the system, all the components of your HA installation must be installed on the same high-speed LAN.
In theory, HA could work over a Wide Area Network (WAN), however in practice, network latency makes it impractical to achieve the performance required for high availability systems.
Common Resources
Each service requires a filestore and a database services.
- The filestore is where binaries are physically stored.
- The database maps a file’schecksumto its physical storage, and many operations on files within repositories are implemented as transactions in the database.
下面的表总结了选择停下来ring binaries and shared resources.
JFrog Artifactory | JFrog Xray | JFrog Mission Control | JFrog Distribution | |
---|---|---|---|---|
Filestore |
|
The storage used by Xray is not a common resource. Only node specific files, such as configuration and temporary files, are saved to the disk. |
Local file systemis used to store information specific to the node. The main file that is used here is themc.keywhich is used to encrypt the database content. This need to be synchronized between the nodes manually. |
|
Database/ Third Party Application |
Artifactory HA requires an external database, which is fundamental to management of binaries and is also used to store cluster wide configuration files. You canconfigure your own databasefrom the following list:
Artifactory HA requires an external database, which is fundamental to management of binaries and is also used to store cluster wide configuration files. Since Artifactory HA contains multiple Artifactory cluster nodes, your database must be powerful enough to service all the nodes in the system. Moreover, your database must be able to support the maximum number of connections possible from all the Artifactory cluster nodes in your system. If you are replicating your database you must ensure that at any given point in time all nodes see a consistent view of the database, regardless of which specific database instance they access.Eventual consistency, and write-behind database synchronization is not supported. |
|
An external database is required, which is fundamental to management of Mission Control database and is also used to store cluster wide configuration files. Currently PostgreSQL is supported, and any change to configuration requires restarting all Mission Control nodes for changes to take effect. |
Distribution HA requires an external database, which is fundamental to management of binaries and is also used to store cluster wide configuration files. Currently PostgreSQL is supported, and any change to configuration only requires restarting a single Distribution node for changes to take effect for the whole Distribution cluster. |