Enabling Services

41 views
Skip to first unread message

rame...@familysearch.org

unread,
Oct 10, 2014, 2:48:35 PM10/10/14
to cmb-use...@googlegroups.com
I am looking to understand how to configure the various services.  In my setup I have 4 boxes running CMB and 2 load balancers:
  • 1 box running with CQS service enabled which is behind a load balancer dedicated to CQS. The load balancer only has port 6059 open.
    • cmb.cqs.serviceEnabled=true
    • cmb.cns.serviceEnabled=false
    • cmb.cns.publisherEnabled=false
    • cmb.cns.publisherMode=Producer,Consumer
  • 1 box running with CNS service enabled which is behind a load balancer dedicated to CQS. The load balancer only has port 6061 open.
    • cmb.cqs.serviceEnabled=false
    • cmb.cns.serviceEnabled=true
    • cmb.cns.publisherEnabled=false
    • cmb.cns.publisherMode=Producer,Consumer
  • 1 box running in Publisher Producer mode.
    • cmb.cqs.serviceEnabled=false
    • cmb.cns.serviceEnabled=false
    • cmb.cns.publisherEnabled=true
    • cmb.cns.publisherMode=Producer
  • 1 box running in Publisher Consumer mode.
    • cmb.cqs.serviceEnabled=false
    • cmb.cns.serviceEnabled=false
    • cmb.cns.publisherEnabled=true
    • cmb.cns.publisherMode=Consumer
The load balancers are used in the CQS and CNS service urls on all for boxes. In the CSN dashboard the column listed as CQS service available under CNS Workers are red and false.  Should I be running CQS on those boxes?  Given that I will want to expand in the future, what would be the proper setup for these for boxes?

boriwo

unread,
Oct 10, 2014, 5:51:43 PM10/10/14
to cmb-use...@googlegroups.com
The setup you are describing sounds ok - the important thing is to use the load balancer endpoints as service URLs for all cmp.properties but from your description I gather that's already what you are doing.

For simplicity you might consider a setup where you enable everything on all nodes. As long as you only have 5-10 nodes that should be ok.
  • cmb.cqs.serviceEnabled=true
  • cmb.cns.serviceEnabled=true
  • cmb.cns.publisherEnabled=true
  • cmb.cns.publisherMode=Producer,Consumer

Or, when you scale up you could enable CQS AND CNS on some nodes and producer AND consumer on some others like so:

  • cmb.cqs.serviceEnabled=true
  • cmb.cns.serviceEnabled=true
  • cmb.cns.publisherEnabled=false
  • cmb.cns.publisherMode=Producer,Consumer
  • cmb.cqs.serviceEnabled=false
  • cmb.cns.serviceEnabled=false
  • cmb.cns.publisherEnabled=true
  • cmb.cns.publisherMode=Producer,Consumer

This way you only have to manage two different configurations.

Don't worry about CQS showing as unavailable - I have a feeling this is a bug in the dashboard. Will have a look and fix if needed soon. You can and should test basic CQS / CNS functionality manually via Web UI though. It's quick and easy and it will give you a sense whether the service is operating properly.






Reply all
Reply to author
Forward
0 new messages