Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Docker for Microservices with Python

You're reading from   Hands-On Docker for Microservices with Python Design, deploy, and operate a complex system with multiple microservices using Docker and Kubernetes

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781838823818
Length 408 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jaime Buelta Jaime Buelta
Author Profile Icon Jaime Buelta
Jaime Buelta
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Introduction to Microservices
2. Making the Move – Design, Plan, and Execute FREE CHAPTER 3. Section 2: Designing and Operating a Single Service – Creating a Docker Container
4. Creating a REST Service with Python 5. Build, Run, and Test Your Service Using Docker 6. Creating a Pipeline and Workflow 7. Section 3:Working with Multiple Services – Operating the System through Kubernetes
8. Using Kubernetes to Coordinate Microservices 9. Local Development with Kubernetes 10. Configuring and Securing the Production System 11. Using GitOps Principles 12. Managing Workflows 13. Section 4: Production-Ready System – Making It Work in Real-Life Environments
14. Monitoring Logs and Metrics 15. Handling Change, Dependencies, and Secrets in the System 16. Collaborating and Communicating across Teams 17. Assessments 18. Other Books You May Enjoy

Setting up logs

We will centralize all the logs that are generated by the system into a single pod. In local development, this pod will expose all the received logs through a web interface.

The logs will be sent over the syslog protocol, which is the most standard way of transmitting them. There's native support for syslog in Python, as well as in virtually any system that deals with logging and has Unix support.

Using a single container makes it easy to aggregate logs. In production, this system should be replaced with a container that relays the received logs to a cloud service such as Loggly or Splunk.

There are multiple syslog servers that are capable of receiving logs and aggregating them; syslog-ng (https://www.syslog-ng.com/) and rsyslog (https://www.rsyslog.com/) are the most common ones. The simplest method is to receive the logs and to store them in a file. Let...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime