Top Banner
31

Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Jan 11, 2017

Download

Technology

Jelastic
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection
Page 2: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

What is the aim of all our projects?

Page 3: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

#freedom #money #success #...?

Page 4: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Satisfy Your Customers

Satisfy Your Customer

Page 5: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

100% Uptime

Page 6: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection
Page 7: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Possible Solutions and Bottlenecks

Additional Software • Integration is complicated• Requires extra human resources• Valuable time spent for configuring tools

Multiple Environment Copies• Proper traffic distribution between the copies• Data synchronization

Page 8: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Traffic Routing Benefits

• Blue-green deployment or zero-downtime update by redirecting portion or all traffic to a new version of an application

• Ongoing A/B testing by routing part of the traffic to a newer application version to compare performance and UX rates

• Advanced failover protection and high availability through sharing the load between two fully functional application copies in different cloud regions

Page 9: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Traffic Routing Methods

Page 10: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Round Robin

Page 11: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Sticky Sessions

Page 12: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Failover Protection

Page 13: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Manual Configuration of Traffic Routing Methods

Page 14: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Step 1: NGINX Modules

NGINX should be compiled with the following modules:

• nginx_upstream_check_module - checks health of upstream servers

• nginx-sticky-module-ng - adds a sticky cookie to be always forwarded to the same upstream server

Page 15: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Step 2: NGINX Configuration

Access the server under your NGINX user:su nginx

Edit nginx.conf by adding the required strings due to the routing method (provided on the next slides)

Page 16: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Round Robin

http {upstream cluster {

server {host1} weight={host1_weight};server {host2} weight={host2_weight};check interval=30000 rise=2 fall=5 timeout=10000 default_down=false type=http;

}

server {listen 80;

location / {proxy_pass http://cluster;

}}

}

Page 17: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Placeholders

{host1} - the domain or IP address of the first endpoint

{host1_weight} - the weight of the first server, default: 1

{host2} - the domain or IP address of the second endpoint

{host2_weight} - the weight of the second server, default: 1

{cookie} - the name of the cookie used to track the persistent upstream server, default: route

Page 18: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Step 3: Reload

Reload the server to apply the changes:nginx -s reload

Reload the server each time you need to tune the settings within nginx.conf

Page 19: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Sticky Sessions

http {upstream cluster {

server {host1} weight={host1_weight};server {host2} weight={host2_weight};check interval=30000 rise=2 fall=5 timeout=10000 default_down=false type=http;sticky name={cookie} path=/;

}

server {listen 80;

location / {proxy_pass http://cluster;

}}

}

Page 20: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Failover Routing

http {upstream cluster {

server {host1};server {host2} backup;check interval=30000 rise=2 fall=5 timeout=10000 default_down=false type=http;

}

server {listen 80;

location / {proxy_pass http://cluster;

}}

}

Page 21: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Automated Traffic Distribution

Page 22: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

How it works?

Page 23: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Installation in One Click

Page 24: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Easily Configured and Manageable

Page 25: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

More Options to Stay Highly Available

Page 26: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Automatic Horizontal Scaling

Page 27: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Affinity & Anti-Affinity Rules

Page 28: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

During the load spikes, Jelastic allocates more resources for app and takes them back, when they are no longer needed

Automatic Vertical Scaling

Page 29: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Software Defined Storage

Integrated SDS technology for automatic failover solution on containers level

Containers’ data are being replicated across several Hardware Nodes.

If one Node goes down, its containers will be immediately restored on another.

Page 30: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

Live Migration of Containers

Migrate containers with application from one physical server to the other with zero downtime

• Increases operational efficiency• Provides better load balancing and data center utilization• Scale within a server without downtime• Allows moving customers to more powerful nodes without service interruption

Page 31: Jelastic Traffic Distribution for Blue-Green Deployment and Failover Protection

STAY IN TOUCH@Jelastic

TRY FOR FREEjelastic.cloud