Install the First Node
Install the first node. The installation is identical to the single node installation.
Warning
Do not start the Insight service.
Configure the
system.yaml
file with the database and first node configuration details. For example,First node system.yaml
shared: database: type: postgresql driver: org.postgresql.Driver url: jdbc:postgresql://<ip:port>/insight?sslmode=disable username: <username> password: <password> jfrogUrl: <JFrog URL> security: joinKey: <Artifactory Join Key>
Start and manage the Insight service.
systemd OS
systemctl start|stop insight.service
Systemv OS
service insight start|stop
Access Insight from your browser at:
http://<jfrogUrl>/ui/
and go to the Dashboard tab in the Application module in the UI.Check the Insight log.
Linux
tail -f $JFROG_HOME/insight/var/log/console.log
Install Additional Nodes
For a node to join a cluster, the node must have the same database configuration and the master key. Install all additional nodes using the same steps described above, with the following additional steps:
Configure the
system.yaml
file for the additional node with master key, database and active node configurations.For example:
Additional node system.yaml
shared: database: type: postgresql driver: org.postgresql.Driver url: jdbc:postgresql://<ip:port>/insight?sslmode=disable username: <username> password: <password> jfrogUrl: <JFrog URL> security: joinKey: <Artifactory Join Key> # Configure the following property values when Elasticsearch is installed from the bundled Insight package. elasticsearch: clusterSetup: "YES" unicastFile: "$JFROG_HOME/insight/data/elasticsearch/config/unicast_hosts.txt"
Copy the
master.key
from the first node to the additional node located at $JFROG_HOME/insight/var/etc/security/master.key.
Add the username and password as configured for Elasticsearch on master node on the additional node too. Add it to the Shared Configurations section in
$JFROG_HOME/insight/var/etc/system.yaml
file.Copy
$ELASTICSEARCH_HOME/config/transport.p12
file from primary to the secondary nodes before starting Elasticsearch.Start the additional node.
Access Insight from your browser at:
http://<jfrogUrl>/ui/
and go to the Dashboard tab in the Application module in the UI.Check the Insight log.
Linux
tail -f $JFROG_HOME/insight/var/log/console.log