Distributed environment validation
  • 04 Jan 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Distributed environment validation

  • Dark
    Light
  • PDF

Article summary

Validation Zookeeper

Zookeeper should have a minimum of 3 nodes/hosts for redundancy. To function properly, a quorum is required (so 2 active nodes out of 3).

You can use netcat (nc) to contact each node: 

- nc <zookeeper_hote> 2181
Type "srvr" and Enter

Here are the properties to validate: 

-Zxid
-Fashion

Zxid should be the same for all nodes.
Mode should indicate "leader" on one node, and "follower" on the other nodes.

Zookeeper configures its logging in /opt/zookeeper/bin/zkServer.sh

_ZOO_DAEMON-OUT=" $ZOO_LOG_DIR/zookeeper.out"  

By default, the log is written to /opt/zookeeper/bin/zookeeper.out

The memory configuration can be validated with: 

PS to | GREP Java

Validate the memory configured with the argument (-Xmx). Zookeeper requires a minimum of 2 GB.


Validation Solr

Solr should have a minimum of 2 nodes/hosts for redundancy. Solr has a web interface to validate the functions of the environment.

http://<host_solr>:8983/solr/#/~cloud

Solr should include 3 collections for Constellio: 

  • Events
  • notifications
  • Records (main collection for metadata and search)

Each collection is divided into shard. Each shard should have at least one leader (black dot) and another active replicated host (green circle). 

The number of shards can vary, but usually we see 1-4 shards per host.

If a node is not worms, this situation is to be investigated.


Solr logs are available in the /opt/solr/server/logs directory
It is possible to see the logs in the web interface as well. Errors are marked in red (warnings in yellow):

The memory configuration can be validated with: 

PS to | GREP Java
Validate the memory configured with the argument (-Xmx). Solr requires a minimum of 6 GB.


Validation Constellio

Constellio should have a minimum of 2 nodes/hosts for redundancy. A node is leader (the election is done with Zookeeper).

Configurations must exist in Zookeeper (accessible from the Solr interface):

 In the left menu, Constellio reports invalid configurations


The errors are detailed by clicking on the link.

Note: In non-distributed mode, Constellio can validate the memory configuration. However, this information will not be available for distribution. 

Also Constellio, has a service to validate the status of the cluster on the path: /constellio/ping, here is the answer returned: 

Constellio status : online (runnning)
ZooKeeper : <hote_1>:2181 is up and running
ZooKeeper : <hote_2>:2181 is up and running
ZooKeeper : <hope_3>:2181 is up and running
Solr cluster is up and running.
Success

The memory configuration can be validated with: 

cat/opt/constellio/conf/wrapper.conf | grep maxmemory

Validate the configured memory, the number is in MB. Constellio requires a minimum of 6 GB. 




Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.