Couchbase Software
Excerpt | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
In order for to for Usage Engine to communicate with the Couchbase database, the You can then install the Couchbase database can be installed by following these steps: Open a web browser and go to http://wwwthe steps described in the Couchbase documentation, docs.couchbase.com. Click Downloads.
Click on Install Instructions to view information on how to install Couchbase.
Note | | ||||||||||
|
services required by Usage Engine are:
|
Refer to docs.couchbase.com for |
information about these services. |
In the Couchbase documentation, review the subtopics under Deployment Considerations in Administration.
Note | ||
---|---|---|
| ||
For the optimal Couchbase Server operations, you must set swappiness to 0 (zero) |
. |
The Couchbase Dashboard
In the Dashboard, select Settings and click on the Auto-Compaction tab. Select the checkbox Compact Buckets and View indexes in parallel.
When
you have a large number of documents in the database, creating iterators may sometimes fail. Enabling this setting may help to mitigate this problem.Repeat the installation on all the Couchbase nodes in the cluster, and ensure that you select the option Join Existing Cluster during the installation of the remaining nodes.
In the Dashboard on any of the nodes, select Servers and click the Rebalance button to distribute the data between the nodes evenly.
Couchbase
Dashboard showing the Rebalance buttonCouchbase
is
nowinstalled,
andbuckets for each created Couchbase profile will be generated and visible in the Couchbase Web Console, as soon as the data buckets are called.
Couchbase Profiles Required by PCC
You should now create two Couchbase Profiles
...
; one for the static configurations in the Data Repository, and one for the runtime data in the Data Repository.
To create these Couchbase profiles:
Click on the New Configuration button in the upper left part of the Desktop windowthe Desktop, and then select double-click on the Couchbase Profile from in the menulist.
A Couchbase Profile configuration opens.
In this dialog Here you have three tabs; Connectivity, which contains settings for the connections between the buckets in the cluster(s), Management , which contains the user name, password, size, and monitoring settings for the bucket, and Advanced, which contains the advanced properties.
Create one profile for the configurations bucket, where:
The Bucket Name is config or something similar.
Set the Bucket User and User Password as a user who has access to the bucket and their password.
The Cluster Nodes section contains the
IP-address/host name
for each of the Couchbase nodes in the cluster.The user name and password for the administrator created during Initial Server setup is added in the Management tab.
You can select the Monitoring checkbox if you want to use monitoring functions for detecting unresponsive nodes and performing fail-over.
This profile will create a bucket called config (or similar), which will be used for static data in the Data Repository, such as the different configurationsrules, products and periods defined.
Create another profile for the usage bucket, where:
The bucket name is bucket or something similar.
Set the Bucket User and User Password as a user who has access to the bucket and their password.
The Cluster Nodes section contains the
IP-address/host name
for each of the Couchbase nodes in the cluster.The user name and password for the administrator created during Initial Server setup is added in the Management tab.
You can select the Monitoring checkbox if you want to use monitoring functions for detecting unresponding nodes and performing fail-overfailover.
This profile will create a usage bucket called bucket (or similar), which will be used for the runtime data in the Data Repository, that is, the actual usage of the subscribers.
In each Execution Context, open Open the
pcc.properties
file, located in the MZ_HOMEthe/etc/pcc/pcc.properties
directory, and enter the names of your newly created profiles in with the following properties:Code Block mz.pcc.storage.couchbase.config.profile= mz.pcc.storage.couchbase.buckets.profile=
Info title Example - pcc.properties Code Block mz.pcc.storage.couchbase.config.profile=MyFolder.config mz.pcc.storage.couchbase.buckets.profile=MyFolder.bucket
In the
PCC Config Storage Properties
group, ensure that the propertymz.pcc.config.storage.class
is set tocom.digitalroute.pcc.storage.config.couchbase.CouchbaseConfigStorage
.
In the
PCC Bucket Storage Properties
group, ensure that the propertymz.pcc.bucket.storage.class
is set tocom.digitalroute.pcc.buckets.storage.couchbase.CouchbaseBucketStorage.
Save the
pcc.properties
file.
In order for the ECs to ECDs to be able to locate the
pcc.properties
file, you must set add the Execution Context propertymz.pcc.properties
.Info title Example - Setting mz.pcc.properties Code Block following system property:
Code Block mz.pcc.properties=
'${mz.home}/
"etc/pcc/pcc.properties
"'Note title Note It is important that the
pcc.properties
property file is located in the stated directory in all Execution Contexts.Restart the ECs.
for each ECD, see Configuring ECD(s) with PCC Properties (3.1).
For further information about the settings in the Couchbase profile, see Couchbase (3.01).