RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Info | ||
---|---|---|
| ||
This document has been modified for the newer version of xconfserver available on RDK Central GitHub. |
XCONF is usually installed on several VMs in production. The number of VMs for the Data Service depends on the number of devices that will be calling it. For the Admin UI, only a few VMs are required since there are usually only a few users making changes each day.
These instructions assume that the XCONF artifacts have already been built. The artifacts required are the Data Service and Admin UI WAR files.
If it's not already installed, install Java.
...
java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
sudo yum install wget
This creates the xconfserver directory and installs the Jetty files.
...
tar -xf tmp/jetty-distribution-9.3.7.v20160115.tar --strip=1
The xconf-dataservice.war file should be copied to the VM. It must be renamed to root.war.
...
mv xconf-dataservice.war root.war
The service.properties file configures XCONF with various settings, such as the Cassandra seed hosts and other Cassandra and service related properties.
In the /opt/xconfserver (or other appropriate) directory, create a file , called service.properties , and add at least the following lines.
connectionPoolscassandra.SharedConnectionPool.maxConnsPerHost=15
connectionPools.SharedConnectionPool.localDatacenterkeyspaceName=<Name of the Keyspace the XCONF column families are located in>
cassandra.localDataCenter=<name of Cassandra data center>
connectionPoolscassandra.SharedConnectionPool.seeds=<IPcontactPoints=<Comma separated list of IP addresses or resolvable hostnames of Cassandra seed nodes>
connectionPoolscassandra.SharedConnectionPool.nodeDiscoveryType=RING_DESCRIBE
connectionPools.SharedConnectionPool.readConsistencyLevel=CL_LOCAL_QUORUM
connectionPools.SharedConnectionPool.useConnectionPoolMonitor=true
connectionPools.SharedConnectionPool.writeConsistencyLevel=CL_LOCAL_QUORUM
connectionPools.SharedConnectionPool.autoDiscoverHosts=trueport=<CQL port (Cassandra default for this is 9042)>
cassandra.consistencyLevel=<Cassandra query consistency level (suggested either LOCAL_QUORUM, LOCAL_ONE, or ONE)>
cassandra.username=<Username to access Cluster>
cassandra.password=<Password associated with the username>
...