Edge for Private Cloud v. 4.16.05
This document covers restoration of any Edge component to an existing environment without having to re-install the component. This means the node where you are restoring the component has the same IP address or DNS name as when you performed the backup.
If you have to re-install the component see How to Reinstall and Restore Components.
Apache ZooKeeper
Restore one standalone node
- Remove old ZooKeeper directories:
/<inst_root>/apigee/data/apigee-zookeeper
/<inst_root>/apigee/etc/apigee-zookeeper.d - Restore ZooKeeper data from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-zookeeper restore backup-2016.03.17,14.40.41.tar.gz - Restart all components to establish synchronization with the new restored ZooKeeper.
Restore one cluster node
- If a single ZooKeeper node fails, that is part of an ensemble, you can create a new node with the same hostname/IP address (follow the re-install steps mentioned in How to Reinstall and Restore Components) and when it joins the ZooKeeper ensemble it will get the latest snapshots from the Leader and start to serve clients. You do not need to restore data in this instance.
Restore a complete cluster
- Stop the complete cluster.
- Restore all ZooKeeper nodes from the backup file.
- Start the ZooKeeper cluster.
- Restart all components.
Apache Cassandra
Restore one standalone node
- Remove old Cassandra directories:
/<inst_root>/apigee/data/apigee-cassandra
/<inst_root>/apigee/etc/apigee-cassandra.d - Restore the Cassandra node from the backup file:
/<inst_root>/apigee/apigee-service/bin/apigee-service apigee-cassandra restore backup-2016.03.17,14.40.41.tar.gz - Restart all components.
Restore one cluster node
- If a single Cassandra node fails, that is part of an ensemble, you can create a new node
with the same hostname/IP address (follow the re-install steps mentioned in How to Reinstall and Restore Components). You
only need to re-install Cassandra, you do not need to restore the data.
When performing a restore on a non-seed node, ensure that at least one Cassandra seed node is up.
After installing Cassandra, and the node is up, (given that RF>=2 for all keyspaces) execute the following nodetool command to initialize the node:
<inst_root>/apigee/apigee-cassandra/bin/nodetool -h localhost repair
Restore a complete cluster
- Stop the complete cluster.
- Restore all Cassandra nodes from the backup file.
- Start the Cassandra cluster.
- Restart all components.
PostgreSQL database
PosgreSQL running standalone or as Master
- Stop the Management Server, Qpid Server, and Postgres Server on all
nodes:
Note: Your system can still handle requests to API proxies while these components are stopped.
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-management-server stop
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-qpid-server stop
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-postgres-server stop - Make sure PostgreSQL database is running:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-postgresql status - Restore PostgreSQL database from the backup file:
/<inst_root>/apigee/apigee-service/bin/apigee-service apigee-postgresql restore 2016.03.17,14.40.41.dump - Start the Management Server, Qpid Server, and Postgres Server on all
nodes:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-management-server start
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-qpid-server start
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-postgres-server start
PosgreSQL running as Standby
- Reconfigure PostgreSQL database using the same config file you used to install it:
/<inst_root>/apigee/apigee-service/bin/apigee-service apigee-postgresql setup -f configFile - Start PostgreSQL:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-postgresql start
Postgres Server
- Remove old Postgres Server directories:
/<inst_root>/apigee/data/edge-postgres-server
/<inst_root>/apigee/etc/edge-postgres-server.d - Restore Postgres Server from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-postgres-server restore backup-2016.03.17,14.40.41.tar.gz - Start Postgres Server:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-postgres-server start
Qpidd database
- Remove old Qpidd directories:
/<inst_root>/apigee/data/apigee-qpidd
/<inst_root>/apigee/etc/apigee-qpidd.d - Restore Qpidd:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-qpidd restore backup-2016.03.17,14.40.41.tar.gz - Start Qpidd:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-qpidd start
Qpid Server
- Remove old Qpid Server directories:
/<inst_root>/apigee/data/edge-qpid-server
/<inst_root>/apigee/etc/edge-qpid-server.d - Restore Qpid Server from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-qpid-server restore backup-2016.03.17,14.40.41.tar.gz - Start Qpid Server:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-qpid-server start
OpenLDAP
- Remove old OpenLDAP directories:
/<inst_root>/apigee/data/apigee-openldap
/<inst_root>/apigee/etc/apigee-openldap.d - Restore OpenLDAP from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-openldap restore backup-2016.03.17,14.40.41.tar.gz - Restart OpenLDAP:
> /<inst_root>/apigee/apigee-service/bin/apigee-service apigee-openldap start
Management Server
- Remove old Management Server directories:
/<inst_root>/apigee/data/edge-management-server
/<inst_root>/apigee/etc/edge-management-server.d - Restore Management Server from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-management-server restore backup-2016.03.17,14.40.41.tar.gz - Restart the Management Server:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-management-server start
Message Processor
- Remove old Message Processor directories:
/<inst_root>/apigee/data/edge-message-processor
/<inst_root>/apigee/etc/edge-message-processor.d - Restore Message Processor from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-message-processor restore backup-2016.03.17,14.40.41.tar.gz - Restart Message Processor:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-message-processor start
Router
- Remove old Router directories:
/<inst_root>/apigee/data/edge-router
/<inst_root>/apigee/etc/edge-router.d - Restore Router from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-router restore backup-2016.03.17,14.40.41.tar.gz - Restart Router:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-router start
Edge UI
- Remove old UI directories:
/<inst_root>/apigee/data/edge-ui
/<inst_root>/apigee/etc/edge-ui.d - Restore UI from the backup file:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-ui restore backup-2016.03.17,14.40.41.tar.gz - Restart UI:
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-ui start