Prepare the template compute instance
Create /usr/local/bin/warmup. Instance specific setting goes here.
Create /etc/systemd/system/warmup.service
Setup warmup as service
Reboot the instance and ensure everything comes up. If okay, then Create Custom Image from this instance, ords-as-v1
Create instance-config-ords-as-v1.json, fix compartmentId, ssh_authorized_keys, imageId
Instance Pool Setup
Create instance configuration via OCI
From Instance Configurations, create Instance Pool, assign Load Balancer and create Autoscaling Configuration
Stress Test
We can run stress-ng on one instance, bring the CPU to 100% and wait to see auto scaling bring up a new instance within the Instance Pool.
No comments:
Post a Comment