Install one property-Store package per backend So, you ll have one property-store on the PBE and 4 property-store on each ABE This is distribute the task execution in smaller/local chunks and FE will pull a pre-generated version instead of generating itself. PBE manage-modules.sh install property-store Default ABE manage-modules.sh install property-store apg1 manage-modules.sh install property-store apg2 manage-modules.sh install property-store apg3 manage-modules.sh install property-store apg4 Remarks On the ABE, it will ask you each time where is the backend associated to the property-store. Example # manage-modules.sh install property-store apg4 Required dependencies, in processing order: [1] java '8.0.51' v8.0.51 [2] module-manager '1.8u1' v1.8u1 [3] jdbc-drivers 'Default' v2.6 [4] I property-store 'apg4' (none) => v2.1u1 > 3 not modified, 1 to install > 7.5 MB space required / 89.7 GB available ? Enter the step to modify, 'yes' to accept them, or 'no' to cancel the operation [yes] > y Starting installation of APG-Property-Store v2.1u1 from property-store-2.1u1-linux-x64... * Gathering information... * 'APG-Property-Store v2.1u1' will be registered with instance name 'apg4'. * It will be installed in '/opt/APG/Databases/APG-Property-Store/apg4'. * Unpacking files... [1] Backends/APG-Backend/apg1/conf/mysql.xml [2] Backends/APG-Backend/apg2/conf/mysql.xml [3] Backends/APG-Backend/apg3/conf/mysql.xml [4] Backends/APG-Backend/apg4/conf/mysql.xml ? Which file should the 'import-property.task' be configured with ? [4] > 4 * Installing files... 100% * 42 files have been installed. * Finalizing installation... ? Task file import-properties.task added by module property-store apg4. Enable it? (yes/no/All/None) [y] > y Installation complete. |
/opt/APG/Tools/Task-Scheduler/Default/logs [root]# tail scheduler-0-0.log INFO -- [2017-01-30 10:00:00 CST] -- : Task import-properties-Default -- Starting task import-properties-Default. INFO -- [2017-01-30 10:00:01 CST] -- : Task import-properties-Default -- Successful completion of task import-properties-Default with status 0. |
/opt/APG/Databases/APG-Property-Store/Default/tmp [root]# ll total 4 drwxr-xr-x 3 apg apg 4096 Feb 16 16:11 _NONE_ -rw-r--r-- 1 apg apg 0 Jan 27 01:00 _NONE_.lock |
170216 01:02:38 : Feb 16, 2017 1:02:38 AM com.watch4net.propstore.apg.tasks.FetchPropertiesTask compute 170216 01:02:38 : INFO: Fetching data table 'data_property' from partition 'APG-apg1' into '/opt/APG/Databases/APG-Property-Store/Default/tmp/DB/APG-DB-nsm123vp141b-1'... 170216 01:02:39 : Feb 16, 2017 1:02:39 AM com.watch4net.propstore.apg.tasks.FetchPropertiesTask completed |
[root2@nsmdenvp138b DB]# pwd /opt/APG/Databases/APG-Property-Store/Default/data/DB [root2@nsmdenvp138b DB]# du -m 17009 ./1487206984103 16996 ./1487120564721 34004 . |
/opt/APG/Databases/MySQL/Default/bin/mysqldump defaults-file=/opt/APG/Databases/MySQL/Default/my.cnf --user=root -p master resources > /root/resources.sql |
To get list of resources: /opt/APG/bin/manage-resources.sh list | grep APG "dba/APG-DB", dba/APG-DB-nsm123vp141b-1 , Etc. Update cachegrp for each APG DB: /opt/APG/bin/manage-resources.sh update dba/APG-DB "{'settings':{'cachegrp':'DB1'}}" /opt/APG/bin/manage-resources.sh update dba/APG-DB-nsm123vp141b-1 "{'settings':{'cachegrp':'DB2'}}" Etc. |
/opt/APG/Databases/MySQL/Default/bin/mysql --defaults-file=/opt/APG/Databases/MySQL/Default/my.cnf --user=root -p master < /root/resources.sql |