Autoscale architecture for AWS 编辑

Autoscale architecture for AWS

The following diagram illustrates the architecture of the autoscaling feature with DNS as the traffic distributor.

AWS-autoscale-architecture-NLB

The following diagram illustrates the architecture of the autoscaling feature with NLB as the traffic distributor.

AWS-autoscale-architecture-NLB

Citrix ADM

Citrix ADM is a web-based solution for managing all Citrix ADC deployments that are deployed on-premises or on the cloud. You can use this cloud solution to manage, monitor, and troubleshoot the entire global application delivery infrastructure from a single, unified, and centralized cloud-based console. Citrix ADM provides all the capabilities required to quickly set up, deploy, and manage application delivery in Citrix ADC deployments and with rich analytics of application health, performance, and security.

The Autoscale groups are created in Citrix ADM and the Citrix ADC VPX instances are provisioned from Citrix ADM. The application is then deployed through StyleBooks in Citrix ADM.

Traffic distributors (NLB or DNS/Route53)

NLB or DNS/Route53 is used to distribute traffic across all the nodes in an Autoscale group. See Autoscale traffic distribution modes for more information.

The Citrix ADM communicates with the traffic distributor to update the application domain and IP addresses of the load balancing virtual servers that front end the application.

Citrix ADM Autoscale group

Autoscale group is a group of Citrix ADC instances that load balance applications as a single entity and trigger autoscaling based on the configured threshold parameter values.

Citrix ADC clusters

A Citrix ADC cluster is a group of Citrix ADC VPX instances and each instance is called a node. The client traffic is distributed across the nodes to provide high availability, high throughput, and scalability.

Note

  • Autoscaling decisions are made at the cluster level and not at the node level.
  • Independent clusters are hosted in different availability zones and therefore support for some of the shared state features are limited.

    Persistence sessions such as source IP persistence and others except cookie based persistence cannot be shared across clusters. However, all the stateless features like load balancing methods work as expected across the multiple availability zones.

AWS auto scaling groups

AWS auto scaling group is a collection of EC2 instances that share similar characteristics and are treated as a logical grouping for the purposes of instance scaling and management.

AWS availability zones

AWS availability zone is an isolated location inside a region. Each region is made up of several availability zones. Each availability zone belongs to a single region.

Traffic distribution modes

As you move your application deployment to cloud, autoscaling becomes a part of the infrastructure. As the applications scale-out or scale-in using autoscaling, these changes must be propagated to the client. This propagation is achieved using DNS based or NLB based autoscaling.

NLB based autoscaling

In NLB-based deployment mode, the distribution tier to the cluster nodes is the AWS network load balancer.

In NLB based autoscaling, only one static IP address is offered per availability zone. This is the public IP address that is added to route53 and the back-end IP addresses can be private. With this public IP address, any new Citrix ADC instance provisioned during autoscaling operates using private IP addresses and does not require additional public IP addresses.

You can use NLB-based autoscaling to manage both TCP and UDP traffic.

DNS based autoscaling

In DNS based autoscaling, DNS acts as the distribution layer to the Citrix ADC cluster nodes. The scaling changes are propagated to the client by updating the domain name corresponding to the application. Currently, the DNS provider is AWS Route53.

Note

In DNS based autoscaling, each Citrix ADC instance requires a public IP address.

How autoscaling works

The following flowchart illustrates the autoscaling workflow.

Autoscale-workflow

The Citrix ADM collects statistics (CPU usage, memory usage, throughput) from the Autoscale provisioned clusters at a time interval of one minute.

The statistics are evaluated against the configuration thresholds. Depending on whether the statistics exceed the maximum threshold or are operating below the minimum threshold, scale-out or scale-in is triggered respectively.

  • If a scale-out is triggered:

    • New nodes are provisioned.
    • The nodes are attached to the cluster and the configuration is synchronized from the cluster to the new node.
    • The nodes are registered with Citrix ADM.
    • The new node IP addresses are updated in DNS/NLB.

When the application is deployed, IPset is created on clusters in each availability zone and the domain and the instance IP addresses are registered with DNS/NLB.

  • If a scale-in is triggered:
    • The IP addresses of the nodes identified for removal are removed.
    • The nodes are detached from the cluster, deprovisioned and then deregistered from Citrix ADM.

When the application is removed, the domain and the instance IP addresses are deregistered from DNS/NLB and the IPset is deleted.

Example

Consider that you have created an Autoscale group named asg_arn in a single availability zone with the following configuration.

  • Threshold parameter – Memory usage
  • Minimum limit: 40
  • Maximum limit: 85
  • Watch time – 3 minutes
  • Cooldown period – 10 minutes
  • Drain connection timeout – 10 minutes
  • TTL timeout – 60 seconds

After the Autoscale group is created, statistics are collected from the Autoscale group. The Autoscale policy also evaluates if any an Autoscale event is in progress and if an autoscaling is in progress, waits for that event to complete before collecting the statistics.

Autoscale-example

Sequence of events:

  • T1 and T2: Memory usage exceeds the maximum threshold limit.
  • T3 - Memory usage is below the maximum threshold limits.
  • T6, T5, T4: Memory usage has breached the maximum threshold limit consecutively for three watch time durations.

    • A scale-out is triggered.
    • Provisioning of nodes occur.
    • Cooldown period is in effect.
  • T7 – T16: Autoscale evaluation is skipped for this availability zone from T7 through T16 as the cool down period is in effect.

  • T18, T19, T20 - Memory usage has breached the minimum threshold limit consecutively for three watch time durations.
    • Scale-in is triggered.
    • Drain connection timeout is in effect.
    • IP addresses are relieved from the DNS/NLB.
  • T21 – T30: Autoscale evaluation is skipped for this availability zone from T21 through T30 as the drain connection timeout is in effect.

  • T31
    • For DNS based autoscaling, TTL is in effect.
    • For NLB based autoscaling, deprovisioning of the instances occurs.
  • T32
    • For NLB based autoscaling, evaluation of the statistics starts.
    • For DNS based autoscaling, deprovisioning of the instances occurs.
  • T33: For DNS based autoscaling, evaluation of the statistics starts.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:94 次

字数:9335

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文