CB Distributed Architecture Tips

Some of our customers are running the CB appliance behind a load balancer.  While the specifics of setting up external DBs and load balancing varies from customer to customer, there are a few CB appliance aspects everyone should be aware of when setting up a distributed architecture.  This KB article is meant to address those CB specifics.

Front-end replication

There are several files that you want to keep in sync between your front-end instances.  We recomend rsync'ing the following directories:

  • /opt/cloudbolt/cbhooks/hookmodules/
  • /var/opt/cloudbolt/proserv/
  • /var/log/cloudbolt/jobs/
  • /var/www/html/cloudbolt/static/

External DBs

If you are setting an external DB make sure to set the correct DB connections in /var/opt/cloudbolt/proserv/customer_settings.py.  You'll need a section that looks like this:

DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'cloudbolt',
          'USER': 'YOUR_DB_CB_ACCOUNT',
          'PASSWORD': 'YOUR_DB_CB_PASSWORD',
          'HOST': 'YOUR_EXTERNAL_DB_IP',
          'PORT': 'YOUR_EXTERNAL_DB_PORT',
          'OPTIONS': {"init_command": 'set storage_engine=INNODB,    \
                    SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED', },
      }
  }
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.