Hands-On Docker for Microservices with Python by Jaime Buelta
Author:Jaime Buelta
Language: eng
Format: mobi, epub
Tags: COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing, COM060180 - COMPUTERS / Web / Web Services and APIs, COM051360 - COMPUTERS / Programming Languages / Python
Publisher: Praful Palekar
Published: 2019-11-22T05:55:45+00:00
Check the entries for aws and example in the backend nodes. There is also a lot of interesting information, such as the number of requests, the last connection, data, and so on.
You can perform actions when checking the example backend, and then set state to MAINT in the drop-down menu. Once applied, the example backend is in maintenance mode and removed from the load balancer. The stats page is as follows:
Accessing the load balancer in localhost:8000 now will only return the thoughts frontend. You can re-enable the backend setting it to the READY state.
There's a state called DRAIN that will stop new sessions going to the selected server, but existing sessions will keep going. This may be interesting in some configurations, but if the backend is truly stateless, moving directly to the MAINT state should be enough.
HAProxy can also be configured to use checks to ensure that the backend is available. We added in the example a commented one, which sends an HTTP command to check a return:
option httpchk HEAD / HTTP/1.1\r\nHost:\ example.com
The check will be the same to both backends, so it needs to be returned successfully. By default, it will be run every couple of seconds.
You can check the full HAProxy documentation at http://www.haproxy.org/. There are a lot of details that can be configured. Follow up with your team to be sure that the configuration of areas like timeouts, forwarding headers, and so on are correct.
The concept of the health check is also used in Kubernetes to ensure that pods and containers are ready to accept requests and are stable. We'll see how to ensure that a new image is deployed correctly in the next section.
Download
Hands-On Docker for Microservices with Python by Jaime Buelta.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12570)
Hello! Python by Anthony Briggs(9915)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9778)
Dependency Injection in .NET by Mark Seemann(9339)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8297)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7073)
Microservices with Go by Alexander Shuiskov(6839)
Practical Design Patterns for Java Developers by Miroslav Wengner(6761)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6700)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6413)
Angular Projects - Third Edition by Aristeidis Bampakos(6104)
The Art of Crafting User Stories by The Art of Crafting User Stories(5633)
NetSuite for Consultants - Second Edition by Peter Ries(5567)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5373)
Kotlin in Action by Dmitry Jemerov(5063)
