Starting, Stopping, Restarting, and Checking the Status of Apigee Edge

Edge for Private Cloud v. 4.17.05

The order of stopping and starting the subsystems is important. Start and stop scripts are provided that take care of that for you for Edge components running on the same node.

Stop order: If you install Edge on multiple nodes, then you should stop Edge components on those nodes in the following order:

  1. Management Server (edge-management-server)
  2. Message Processor (edge-message-processor)
  3. Postgres Server (edge-postgres-server)
  4. Qpid Server (edge-qpid-server)
  5. Router (edge-router)
  6. Edge UI (edge-ui)
  7. Cassandra (apigee-cassandra)
  8. OpenLDAP (apigee-openldap)
  9. PostgreSQL database (apigee-postgresql)
  10. Qpidd (apigee-qpidd)
  11. ZooKeeper (apigee-zookeeper)

Start order: If you install Edge on multiple nodes, then you should start Edge components on those nodes in the following order:

  1. Cassandra (apigee-cassandra)
  2. OpenLDAP (apigee-openldap)
  3. PostgreSQL database (apigee-postgresql)
  4. Qpidd (apigee-qpidd)
  5. ZooKeeper (apigee-zookeeper)
  6. Management Server (edge-management-server)
  7. Message Processor (edge-message-processor)
  8. Postgres Server (edge-postgres-server)
  9. Qpid Server (edge-qpid-server)
  10. Router (edge-router)
  11. Edge UI (edge-ui)

The following scripts detect the Apigee components configured to run on the system on which the script is executed, and will start or stop only those components in the correct order for that node.

  • To stop Apigee Edge, Apache Cassandra, and Apache ZooKeeper:
    /opt/apigee/apigee-service/bin/apigee-all stop
  • To start Apache ZooKeeper, Apache Cassandra, and Apigee Edge:
    /opt/apigee/apigee-service/bin/apigee-all start
  • To check if the server is running:
    /opt/apigee/apigee-service/bin/apigee-all status

Starting, Stopping, Restarting, and Checking the Status of an Individual Service

You can use the following tool to start/stop/restart or check the status of an individual Apigee service on any specific server.

/opt/apigee/apigee-service/bin/apigee-service <service> <command>

where:

  • <service> is one of the following: edge-management-server, edge-ui, edge-router, edge-message-processor, edge-qpid-server, edge-postgres-server, apigee-zookeeper, apigee-cassandra, apigee-openldap, apigee-qpidd, apigee-postgresql
  • <command> is one of the following: start, stop, restart, status

For example, to start, stop, or restart the Management Server, run the following commands:

apigee-service edge-management-server start
apigee-service edge-management-server stop
apigee-service edge-management-server restart

You can also check the status of an individual Apigee service by using the following command:

apigee-service edge-management-server status