Optimize Settings for Autoscaling Environments

Make sure you utilize these best practices to optimize the settings for autoscaling environments.

  1. Use a dedicated compartment: Create a dedicated compartment under the root compartment for the autoscaling environment setup and define specific IAM policies to restrict access . This helps maintain better isolation, control, and security.
  2. Keep all resources in one compartment: Keep all related resources, such as the VCN, subnet, and custom image within the same compartment where access policies are configured. This ensures consistent access control and simplifies management.
  3. Secure your network: Refine your VCN security rules as needed to allow only the required ingress and egress traffic. Apply the principle of least privilege to enhance network security.
  4. Use custom images for fast provisioning: Use a custom image to configure the instance pool. This ensures that instances are provisioned quickly, as all prerequisite software is already installed.
  5. Validate the image before you create the instance pool: Verify the instance before creating the image to confirm that all required prerequisite software has been successfully downloaded and configured. This step ensures that future instances launched from this image will have the expected setup and dependencies in place.
  6. Apply instance pool scaling thresholds strategically: Define thresholds (for example, scale-out at 80%, scale-in at 50%) will give enough time for new instances to join the pool before workload surges.