Verifying a Mashery Local Cluster

  1. Load the images in both master and worker node:
    docker load -i tml-cache.tar.gz
     
    1d31b5806ba4: Loading layer [==================================================>]  208.3MB/208.3MB
     
    c0f3b2d82847: Loading layer [==================================================>]   7.68kB/7.68kB
     
    c11c79b1987d: Loading layer [==================================================>]  309.2kB/309.2kB
     
    521ab48a301e: Loading layer [==================================================>]  57.34kB/57.34kB
     
    69063ff3262d: Loading layer [==================================================>]  390.5MB/390.5MB
     
    Loaded image: tml-cache:v5.0.0.1103
     
    swarm-manager000000:~$ docker load -i tml-cm.tar.gz
     
    ccbff57772a9: Loading layer [==================================================>]   7.68kB/7.68kB
     
    dfbeac77eeb5: Loading layer [==================================================>]  309.2kB/309.2kB
     
    f085913cf40c: Loading layer [==================================================>]  30.21kB/30.21kB
     
    c7779cf36681: Loading layer [==================================================>]  312.8MB/312.8MB
     
    Loaded image: tml-cm:v5.0.0.1103
     
    swarm-manager000000:~$ docker load -i tml-log.tar.gz
     
    7a57fca15c3f: Loading layer [==================================================>]  43.01kB/43.01kB
     
    6af5d737a37f: Loading layer [==================================================>]  481.1MB/481.1MB
     
    Loaded image: tml-log:v5.0.0.1103
     
    swarm-manager000000:~$ docker load -i tml-nosql.tar.gz
     
    bdc21ad3d38b: Loading layer [==================================================>]  7.168kB/7.168kB
     
    064ab6cd68cf: Loading layer [==================================================>]  308.7kB/308.7kB
     
    05e8b728df7c: Loading layer [==================================================>]   59.9kB/59.9kB
     
    60db689c06cc: Loading layer [==================================================>]  337.9MB/337.9MB
     
    Loaded image: tml-nosql:v5.0.0.1103
     
    swarm-manager000000:~$ docker load -i tml-sql.tar.gz
     
    c79c5b40b07e: Loading layer [==================================================>]  84.99kB/84.99kB
     
    17e918eef713: Loading layer [==================================================>]  3.072kB/3.072kB
     
    19e1b8585c4b: Loading layer [==================================================>]  3.072kB/3.072kB
     
    b63917f881c3: Loading layer [==================================================>]  1.305GB/1.305GB
     
    Loaded image: tml-sql:v5.0.0.1103
     
    swarm-manager000000:~$ docker load -i tml-tm.tar.gz
     
    f972d139738d: Loading layer [==================================================>]  208.8MB/208.8MB
     
    396318fc0852: Loading layer [==================================================>]  7.168kB/7.168kB
     
    eb17199c4623: Loading layer [==================================================>]  308.7kB/308.7kB
     
    e0af67b64838: Loading layer [==================================================>]  79.36kB/79.36kB
     
    08763e9e1a6d: Loading layer [==================================================>]  3.072kB/3.072kB
     
    24ab22e6335c: Loading layer [==================================================>]  3.072kB/3.072kB
     
    ee9a79db28f4: Loading layer [==================================================>]  3.584kB/3.584kB
     
    3946211a38ac: Loading layer [==================================================>]  436.8MB/436.8MB
     
    Loaded image: tml-tm:v5.0.0.1103
  2. Run the following command:
    ./compose.sh manifest-azure-swarm.json
    TMG_CLUSTER_NAME: Tibco Mashery Local Reference Cluster
    TMG_CLUSTER_TAG: 169520f85a36e474ea1b06d4c87e111d
    TMG_ZONE_NAME 0: local
    TMG_ZONE_COUNT: 1
    TMG_RELEASE_VERSION: 5.0.0
  3. If the swarm cluster is created successfully, create an Overlay network "ml5" for the containers networking. Execute the following command on the manager node:
    docker network create -d overlay --attachable ml5
  4. Create the cluster in master:
    ./create-tml-cluster.sh
     
    Deploying cassandra pods.
     
    Creating config nosqlstack_nosql_config
    Creating service nosqlstack_nosql_seed
     
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          0/1                 tml-nosql:v5.0.0.1103  
    be5mlsy25wkq        nosqlstack_nosql_seed   replicated          1/1                 tml-nosql:v5.0.0.1103  
     
    Deploying CM pods.
     
    Creating service cmstack_tmlcm
     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          0/1                 tml-cm:v5.0.0.1103     
    paefz0llbi3x        cmstack_tmlcm           replicated          1/1                 tml-cm:v5.0.0.1103     
     
    Creating config logstack_log_config
     
    Creating service logstack_log
     
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          0/1                 tml-log:v5.0.0.1103    
    vyz1o1t0kok3        logstack_log            replicated          1/1                 tml-log:v5.0.0.1103    
     
    Deploying DB pods.
     
    Creating config sqlstack_sql_config
     
    Creating service sqlstack_sql
     
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          0/1                 tml-sql:v5.0.0.1103    
    kq91jpndk7s3        sqlstack_sql            replicated          1/1                 tml-sql:v5.0.0.1103    
     
    Deploying memcache pods.
     
    Creating config cachestack_cache_config
     
    Creating service cachestack_cache
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          0/1                 tml-cache:v5.0.0.1103  
    g01ahp3zkxib        cachestack_cache        replicated          1/1                 tml-cache:v5.0.0.1103  
     
    Deploying TM pods.
     
    Creating config tmstack_tm_config
     
    Creating service tmstack_tm
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
     
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
     
    urg24qcvqs77        tmstack_tm              replicated          0/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
     
    urg24qcvqs77        tmstack_tm              replicated          1/1                 tml-tm:v5.0.0.1103      *:80->80/tcp, *:443->443/tcp, *:8083->8083/tcp
    
  5. Confirm that all the nodes are running:
    docker ps
     
    CONTAINER ID        IMAGE                                           COMMAND                  CREATED             STATUS                    PORTS                                              NAMES
     
    291e22f5e58f        tml-tm:v5.0.0.1103                              "/usr/local/bin/tm-e…"   39 minutes ago      Up 39 minutes             22/tcp, 80/tcp, 443/tcp, 8000/tcp, 8083-8084/tcp   tmstack_tm.1.mni56750178ahtg50gum5z7qh
     
    f243142b4b42        tml-cache:v5.0.0.1103                           "/usr/local/bin/cach…"   40 minutes ago      Up 40 minutes             11211-11216/tcp                                    cachestack_cache.1.pfcwpwab0hpft33yrrrh4ho7p
     
    ca0436e40575        tml-sql:v5.0.0.1103                             "/usr/local/bin/sql-…"   40 minutes ago      Up 40 minutes             3306/tcp                                           sqlstack_sql.1.jok88lcj9lgwiuk0god0uzuqy
     
    c5529587ae4f        tml-log:v5.0.0.1103                             "/usr/local/bin/log-…"   41 minutes ago      Up 41 minutes             24023/tcp, 24220/tcp, 24224/tcp                    logstack_log.1.dttvk92w8aqd2bv4l9c41ix5s
     
    8e47975639d4        tml-cm:v5.0.0.1103                              "/usr/local/bin/cm-e…"   41 minutes ago      Up 41 minutes                                                                cmstack_tmlcm.1.vqtsrve3p29nqj5kyou7dbmcu
     
    c4fe9e9ca9d7        tml-nosql:v5.0.0.1103                           "/usr/local/bin/nosq…"   42 minutes ago      Up 42 minutes (healthy)   7000-7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp        nosqlstack_nosql_seed.1.ahrt4iwptr2sowxexs359kgbr
     
    b8fe802ff205        docker4x/l4controller-azure:18.03.0-ce-azure1   "loadbalancer run --…"   About an hour ago   Up About an hour                                                             editions_controller
     
    82991bebc2dc        docker4x/meta-azure:18.03.0-ce-azure1           "metaserver -iaas_pr…"   About an hour ago   Up About an hour          10.0.0.4:9024->8080/tcp                            meta-azure
     
    d35f2408e1fb        docker4x/guide-azure:18.03.0-ce-azure1          "/entry.sh"              About an hour ago   Up About an hour                                                             editions_guide
     
    419d04693794        docker4x/logger-azure:18.03.0-ce-azure1         "python /server.py"      About an hour ago   Up About an hour          0.0.0.0:514->514/udp                               editions_logger
     
    b26437d3536d        docker4x/agent-azure:18.03.0-ce-azure1          "supervisord --confi…"   About an hour ago   Up About an hour                                                             agent
    
  6. Confirm that all the nodes are in ACTIVE state:
    clustermanager ls components
     
    Using cluster [Tibco Mashery Local Reference Cluster]
     
    Using Zone [local]
     
    Component ID                          Component Type       Component Name       Component Status     Component Host       Component Agent Port   Component Service Port(s) 
     
    ------------------------------------- -------------------- -------------------- -------------------- -------------------- ---------------------- ---------------------------
     
    cc8a965c-bab6-463d-ac7a-ac4d7f80a135  sql                  sql                  ACTIVE               10.0.0.28            9080                   3306                      
     
    39065225-fe20-48fa-8765-fafcb5dfde61  nosql                nosql                ACTIVE               10.0.0.7             9080                   9042                      
    541c37a8-c785-4399-a8fa-b9c82c64bdd  cache                cache                ACTIVE               10.0.0.35            9080                   11212,11211,11213,11214,11215,11216
    c80b782f-d64b-4001-8b1c-64acdb882b74  trafficmanager       tm                   ACTIVE               10.0.0.42            9080                   8080                      
    1a61e656-7cf8-4e71-bc13-e8f1a2ff72fb  logservice           log                  ACTIVE               10.0.0.21            9080                   24224