| OLD | NEW |
| 1 # GCE Backend | 1 # GCE Backend |
| 2 | 2 |
| 3 A GCE backend for Machine Provider. | 3 A GCE backend for Machine Provider. |
| 4 | 4 |
| 5 GCE Backend is composed of a series of cron jobs. Each cron runs independently | 5 GCE Backend is composed of a series of cron jobs. Each cron runs independently |
| 6 of the others and performs idempotent operations. Many of the jobs are only | 6 of the others and performs idempotent operations. Many of the jobs are only |
| 7 eventually consistent, converging on the desired state over multiple calls. | 7 eventually consistent, converging on the desired state over multiple calls. |
| 8 | 8 |
| 9 | 9 |
| 10 ## Setting up | 10 ## Setting up |
| 11 | 11 |
| 12 * Visit http://console.cloud.google.com and create a project. Replace | 12 * Visit http://console.cloud.google.com and create a project. Replace |
| 13 `<appid>` below with your project id. | 13 `<appid>` below with your project id. |
| 14 * Visit Google Cloud Console, | 14 * Visit Google Cloud Console, |
| 15 * IAM & Admin, click `Add Member` and add someone else so you can safely | 15 * IAM & Admin, click `Add Member` and add someone else so you can safely |
| 16 be hit by a bus. | 16 be hit by a bus. |
| 17 * Pub/Sub, click `Enable API`. | |
| 18 * Compute Engine, to enable Compute Engine. | 17 * Compute Engine, to enable Compute Engine. |
| 19 * In Pub/Sub, create a topic with the same name as | |
| 20 pubsub.get\_machine\_provider\_topic(), and a pull subscription with the | |
| 21 same name as pubsub.get\_machine\_provider\_subscription(). On the topic, | |
| 22 authorize the Machine Provider's default service account as a publisher, | |
| 23 e.g. machine-provider@appspot.gserviceaccount.com. | |
| 24 * Upload the code with: `./tools/gae upl -x -A <appid>` | 18 * Upload the code with: `./tools/gae upl -x -A <appid>` |
| 25 * Visit https://\<appid\>.appspot.com/auth/bootstrap and click `Proceed`. | 19 * Visit https://\<appid\>.appspot.com/auth/bootstrap and click `Proceed`. |
| 26 * If you plan to use a [config service](../config_service), | 20 * If you plan to use a [config service](../config_service), |
| 27 * Make sure it is setup already. | 21 * Make sure it is setup already. |
| 28 * [Follow instruction | 22 * [Follow instruction |
| 29 here](../components/components/config/#linking-to-the-config-service). | 23 here](../components/components/config/#linking-to-the-config-service). |
| 30 * If you plan to use an [auth_service](../auth_service), | 24 * If you plan to use an [auth_service](../auth_service), |
| 31 * Make sure it is setup already. | 25 * Make sure it is setup already. |
| 32 * [Follow instructions | 26 * [Follow instructions |
| 33 here](../auth_service#linking-isolate-or-swarming-to-auth_service). | 27 here](../auth_service#linking-isolate-or-swarming-to-auth_service). |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 147 |
| 154 ## delete-instance-templates | 148 ## delete-instance-templates |
| 155 | 149 |
| 156 Deletes GCE instance templates that aren't found in the config and have no | 150 Deletes GCE instance templates that aren't found in the config and have no |
| 157 instance group managers configured to use them. | 151 instance group managers configured to use them. |
| 158 | 152 |
| 159 | 153 |
| 160 ## cleanup-entities | 154 ## cleanup-entities |
| 161 | 155 |
| 162 Deletes entities that are no longer needed. | 156 Deletes entities that are no longer needed. |
| OLD | NEW |