Google Compute Engine Cloud Connector Extension

Google Compute Engine Cloud Connector Extension

 

Use Case

 

Elastically grow/shrink instances into cloud/virtualized environments. There are four use cases for the connector.

 

First, if the Controller detects that the load on the machine instances hosting an application is too high, the gce-connector-extension may be used to automate creation of new virtual machines to host that application. The end goal is to reduce the load across the application by horizontally scaling up application machine instances.

 

Second, if the Controller detects that the load on the machine instances hosting an application is below some minimum threshold, the gce-connector-extension may be used to terminate virtual machines running that application. The end goal is to save power/usage costs without sacrificing application performance by horizontally scaling down application machine instances.

 

Third, if the Controller detects that a machine instance has terminated unexpectedly when the connector refreshes an application machine state, the gce-connector-extension may be used to create a replacement virtual machine to replace the terminated application machine instance. This is known as our failover feature.

 

Lastly, the gce-connector-extension may be used to stage migration of an application from a physical to virtual infrastructure. Or the gce-connector-extension may be used to add additional virtual capacity to an application to augment a preexisting physical infrastructure hosting the application.

 

Prerequisite

 

Create a service account for your GCE project and download the privatekey file (.p12 file). To do this:

  1. Log into the Google Cloud Console
  2. Click on the project you want to use the GCE monitoring extension with (or create one if you don't have one yet).
  3. Click "APIs & auth" in the left sidebar
  4. Click "Credentials" in the left sidebar
  5. Click "Create New Client ID" and choose "Service Account" A private key file (.p12 file) will be downloaded for you. Note the password for the private key! This private key is your client private key

 

Installation

 

  1. Download and unzip the file gce-connector.zip file below into the <controller install dir>/lib/connectors directory.
  2. Restart the Controller
  3. Go to the controller dashboard on the browser. Under Setup->My Preferences->Advanced Features enable "Show Cloud Auto-Scaling features" if it is not enabled.
  4. On the controller dashboard click "Cloud Auto-Scaling" and configure the compute cloud and the image.

Click Compute Cloud->Register Compute Cloud. Refer to the image below

 

gce_compute_cloud.png

 

Click Image->Register Image. Refer to the image below

 

gce_image.png

 

To launch an instance click the image created in the above step and click on Launch Instance. Refer to the image below

 

gce_launch_instance.png

 

Google compute engine does not allow us to stop the instance (delete instance is allowed), so restart operation does not do anything. Refer to the image below

 

gce_restart.png

 

Contributing

Always feel free to fork and contribute any changes directly via GitHub.

 

Support

For any support questions, please contactace@appdynamics.com.

 

Version:

1.0.1

Compatibility:

3.6 and above

Last Update:

2 Dec 2016

 

Release Notes:

  • Version 1.0.1  (2 Dec 2016)
    1) Code changes to make the connector work with 4.3 controller