2 Replies Latest reply on May 22, 2014 10:03 AM by davsclaus

    Ensemble not working

    rvashishth

      I am trying to add the child containers to an ensemble. I am having a single fabric server(one root

      container and three child container-as explained in red hat ensemble docs). I have successfully added

      all the child containers to the fabric ensemble but after stopping child container i couldn't see any fabric

      available. It seems like while stopping child it removed the fabric also.

       

      Following are the steps to reproduce above scenario:-

       

      1> Extract jboss-fuse-full-6.1.0.redhat-379

      2> go to karaf_home/etc>users.properties

      uncomment admin=admin,admin

      3> karaf_home/bin> fuse.bat

      4> Create Fabric by running following command

      JBossFuse:karaf@root>fabric:create --zookeeper-password admin

      5> create three child container

      JBossFuse:karaf@root>fabric:container-create-child root child 3

      6> check if all container are running

      JBossFuse:karaf@root>fabric:container-list

      after running this command check if connected status is true for all containers

      7> Add all three child container into ensemble as follows

      JBossFuse:karaf@root>fabric:ensemble-add child1 child2 child3

      8> Once ensemble success check the status of each server it will show the ensemble name in profile column

      JBossFuse:karaf@root>fabric:container-list

      Here ensemble is successfully created.

      9> Now stop all container one by one. Since containers are part of ensemble we need to use -f argument to stop

         the containers.

      JBossFuse:karaf@root>fabric:container-stop -f child1

      JBossFuse:karaf@root>fabric:container-stop -f child2

      JBossFuse:karaf@root>fabric:container-stop -f child3

       

      10> After stop all the container run any command with fabric i.e.

      JBossFuse:karaf@root>fabric:container-list

      This will say Command not found

       

      Now i again need to create the fabric, since previously created fabric is no more available.

       

      following are my queries:-

      1> Isn't is not possible to add child container to ensemble ?

      2> If is it than why after stopping the container(root/child) server do not identify

      installed fabric ?

      3> Is there any step i have missed or not in docs. How i can add child containers to ensemble ?

        • 1. Re: Ensemble not working
          davsclaus

          The idea with servers being part of the ensemble is that you do this for an odd number of servers in your data center.

          eg so the ensemble is HA even for network connectivity issues. So the idea is not to have 2+ servers on the same box as ensemble servers.

          So its a bit unusual use-case you do.

           

          So usually you will create those containers on other boxes, and then join them to the ensemble, using fabric:join

          • 2. Re: Ensemble not working
            davsclaus

            And btw its perfect fine to create child containers from a parent container that is an ensemble server.

            But the child containers are just child containers.