Verifying the Deployment on Swarm

Verify Swarm and TIBCO Mashery Local Clusters

  1. Run the following command to check if the correct number of containers have been created. If the number of nosql containers is greater than 1, then one will be created as seed node and remaining as non seed.
    docker service ls
    Sample output:

  2. You can also get the placement of containers node wise by running the following command.
    docker node ps $(docker node ls -q) --filter desired-state=Running | uniq
    Sample output:

  3. To examine the current state of the cluster, go the cm container. Make note of node where cm is deployed. SSH into the node where tml-cm is running. Execute the following commands in sequence to monitor cluster current status.
    1.   docker ps
    2. docker exec -it <cm container id> /bin/bash
    3. You will see the list of commands you can execute within the container. Here is a common set of commands you may want to use:

Verifying Successful Load of Sample Data

To verify that the sample data is loaded successfully:
  1. Login into the sql container and do a "ls" in the directory "/var/lib/mysql".
  2. In the results, a "data.zip_<timestamp+randomnumber>" should be present in that location.
    [root@mysql-set-0-0 builder]# ls /var/lib/mysql | grep data.zip
     
    data.zip_20180918205248