Importing Configuration Data into Mashery Local 5.0 Zones
The exported configuration data file from the previous step (Exporting Configuration Data) must be imported into each Mashery Local 5.0 zone.
There are two ways to import the configuration data:
- Option 1: Synchronize configuration data from Mashery On-premises Manager (MOM)
TIBCO Mashery Local offers the capability to sync data from an active MoM host at the time of cluster creation. To load the data using the MoM sync configuration, specify the following three properties in the tm_sql_properties.json:
"mom-host": "<MOM_HOST>", "apiKey": "<MOM_API_KEY>", "apiSecret": "<MOM_API_SECRET>",
The tm_sql_properties.json is located in the tm-deploy/properties/ folder. - Option 2: After the ML 5.0 cluster is setup, the API definitions can be modified using the Configuration Manager, exported and re-imported into the cluster. The new data.zip should be copied into the running SQL container. The sample commands below cover the docker swarm deployment or Kubernetes deployment:
-
docker cp /Downloads/data.zip sqlstack_sql.1. k58znp43nd9t7i9em59qq4xez:/var/lib/mysql/
-
kubectl cp /Downloads/data.zip mysql-set-0-0:/var/lib/mysql/
[root@105ad1cbad5e mysql]# service jetty restart
-
Copyright © Cloud Software Group, Inc. All rights reserved.