Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Watch4net: How to setup and configure the Property Store for multiple databases (304747)

Last Updated: 5/29/2020Categories: How toTotal Views: 2438Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Resolution

This article explains how to setup and configure the Property Store to support multiple databases in a Watch4net environment.

Install the Module in Linux:

Check the installed modules to make sure the  property-store  module has been installed by running the following command:

./manage-modules.sh list available

Make sure the  property-store  module is displayed

If the  property-store  module is not displayed run the following command to install the module:

./manage-modules.sh install property-store

Install the Module in Windows:

Check the installed modules to make sure the  property-store  module has been installed by running the following command:

manage-modules.cmd list available

Make sure the  property-store  module is displayed

If the  property-store  module is not displayed run the following command to install the module:

manage-modules.cmd install property-store

Run property store import in Linux:

Navigate to /root /APG/Databases/APG-Property-Store/Default/bin

Run the following command

./propstore-client.sh

The command will query the data from the property store and verify that the properties are being imported

Run property store import in Windows:

Navigate /root /APG/Databases/APG-Property-Store/Default/bin

Run the following command

propstore-client.cmd

The command will query the data from the property store and verify that the properties are being imported

Configure connection to the databases for a multiple database configuration:

Edit the mysql.xml and mysql-root-apg.xml for each new backend

FQDN to the database/backend host

Navigate to root/APG/Tools/MySQL-Maintenance-Tool/conf

Edit the configuration file (ex: mysql.xml)

Example:

<url>jdbc:mysql://localhost:53306/apg?autoReconnect=true</url>

<url>jdbc:mysql://localhost:53306/DB1?autoReconnect=true</url>

<url>jdbc:mysql://localhost:53306/DB2?autoReconnect=true</url>

Edit the server.xml to configure access to the defined APG databases:

Navigate to root/APG/Web-Servers/Tomcat/Default/conf/conf

Edit the configuration file (ex: server.xml)

Example:

<!-- Defines the connection to the DB1 database for MySQL. -->

<Resource name="jdbc/APG-DB1" auth="Container" type="javax.sql.DataSource" maxActive="10"

maxIdle="10" validationQuery="SELECT 1" testOnBorrow="false" testWhileIdle="true" validationQueryTimeout="5"

timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" maxWait="10000"

username="apg" password="watch4net" driverClassName="com.mysql.jdbc.Driver" removeAbandoned="true"

removeAbandonedTimeout="60" logAbandoned="true" url="jdbc:mysql://db1locationurl:53306/ APG-DB1?autoReconnect=true" />

<!-- Defines the connection to the DB2 database for MySQL. -->

<Resource name="jdbc/APG-DB2" auth="Container" type="javax.sql.DataSource" maxActive="10"

maxIdle="10" validationQuery="SELECT 1" testOnBorrow="false" testWhileIdle="true" validationQueryTimeout="5"

timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" maxWait="10000"

username="apg" password="watch4net" driverClassName="com.mysql.jdbc.Driver" removeAbandoned="true"

removeAbandonedTimeout="60" logAbandoned="true" url="jdbc:mysql://db21url:53306/ APG-DB2?autoReconnect=true" />

Edit the APG.xml to provide access to the new databases:

Navigate to the Root/APG/Web-Servers/Tomcat/Default/conf/Catalina/localhost/bin

FQDN to the database/backend host

Edit the configuration file (ex: APG.xml)

Example:

<!-- Gives access to the timeseries database. -->

<ResourceLink name="jdbc/APG-DB:{ cachegrp=DB }" global="jdbc/APG-DB" type="javax.sql.DataSource" />
<ResourceLink name="jdbc/APG-DB1:{ cachegrp=DB }" global="jdbc/APG-DB1" type="javax.sql.DataSource" />

<ResourceLink name="jdbc/ APG-DB2:{ cachegrp=DB }" global="jdbc/ APG-DB2" type="javax.sql.DataSource" />

Configure the property store to use the  cachegrp  attribute to speed up property store queries in a multiple Database configuration:

Edit APG.xml (or any similar web-application configuration file, for example APG-WS.xml) file by navigating to:

Root/APG/Web-Servers/Tomcat/Default/conf/Catalina/localhost/bin

Edit the configuration file (example: APG.xml)

Example:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<!-- ... --->

<index-configuration>

<!-- ... --->

<apg>

<!-- Import APG-DB1 properties into the group GRP1. -->

<datasource id="jdbc/APG-DB1:{ cachegrp=GRP1 }" ... />

<!-- Import APG-DB2 properties into the group GRP1. -->

<datasource id="jdbc/APG-DB2:{ cachegrp=GRP1 }" ... />

<!-- Import APG-DB3 properties into the group GRP2. -->

<datasource id="jdbc/APG-DB3:{ cachegrp=GRP2 }" ... />

<!-- Dont import APG-DBX properties into the Property Store. -->

<datasource id="jdbc/APG-DBX" ... />

</apg>

</index-configuration>

<!-- ... --->

</configuration>

This will allow the import-properties task to determine which cache group the database should be merged with to speed up property store related queries.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

VMware Smart Assurance - Watch4Net/M&R

Take Our Survey

Support Assistant