You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"echo 'Environment=REDIS_PASSWORD=${rediscloud_subscription_database.autoscale-database.password}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
233
213
"echo 'Environment=REDIS_CLOUD_API_KEY=${var.redis_cloud_api_key}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
234
214
"echo 'Environment=REDIS_CLOUD_ACCOUNT_KEY=${var.redis_cloud_account_key}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
235
-
"echo 'Environment=REDIS_CLOUD_SUBSCRIPTION_ID=${rediscloud_subscription.autoscaling_sub.id}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
215
+
"echo 'Environment=REDIS_CLOUD_SUBSCRIPTION_ID=${rediscloud_subscription_database.autoscale-database.id}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
236
216
"echo 'Environment=ALERT_MANAGER_HOST=${google_compute_instance.autoscale-vm-prometheus.network_interface[0].access_config[0].nat_ip}' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
237
217
"echo 'Environment=ALERT_MANAGER_PORT=9093' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
238
218
"echo 'ExecStart=/usr/bin/java -jar /usr/local/bin/autoscaler.jar' | sudo tee -a /etc/systemd/system/autoscaler.service > /dev/null",
This is a quickstart guide for the Redis Cloud Autoscaler. It will show you how you can deploy the Redis Cloud Autoscaler alongside your Redis Cloud subscription.
6
+
7
+
## Configure Environment
8
+
9
+
Inside of the `gcp` folder you will find the `.tfvars.example` file. This file contains the environment variables that you need to set before you start the Redis Cloud Autoscaler. You can create a copy of this file called `.tfvars` and fill out the variables.
10
+
11
+
### Spinning up the Redis Cloud Autoscaler with terraform in GCP
12
+
13
+
To spin up the Redis Cloud Autoscaler with terraform in GCP, you can cd into the `gcp` folder and run the following command: `terraform init && terraform apply --var-file=.tfvars`. This will start the Redis Cloud Autoscaler in detached mode. and enter `yes` when prompted to apply the changes.
14
+
15
+
### Create some Rules
16
+
17
+
You can open the postman collection in the `postman` folder to create some rules for the Redis Cloud Autoscaler.
18
+
19
+
#### Configure Postman
20
+
21
+
1. In Postman import the `autoscaler.postman_collection.json` file in the `postman` folder.
22
+
2. In Postman import the `autoscaler.postman_environment.json` file in the `postman` folder.
23
+
3. Open the `autoscaler` environment.
24
+
4. Update the `base_url` to the base URL of the Redis Cloud Autoscaler.
25
+
7. Update the `db_id` to the ID of the database you want to scale.
26
+
27
+
#### Create a Rule
28
+
29
+
In Postman, open the Throughput rules or Memory rules collection.
30
+
31
+
1. Click on the `IncreaseThroughputDeterministic` or `IncreaseMemoryDeterministic` request.
32
+
2. Click on the `Body` tab.
33
+
3. Update the `scale_value` to the value you want to scale to (in ops/sec).
0 commit comments