Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Running Windows Containers on AWS

You're reading from   Running Windows Containers on AWS A complete guide to successfully running Windows containers on Amazon ECS, EKS, and AWS Fargate

Arrow left icon
Product type Paperback
Published in Apr 2023
Publisher Packt
ISBN-13 9781804614136
Length 212 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Marcio Morales Marcio Morales
Author Profile Icon Marcio Morales
Marcio Morales
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1: Why Windows Containers on Amazon Web Services (AWS)?
2. Chapter 1: Windows Container 101 FREE CHAPTER 3. Chapter 2: Amazon Web Services – Breadth and Depth 4. Part 2: Windows Containers on Amazon Elastic Container Service (ECS)
5. Chapter 3: Amazon ECS – Overview 6. Chapter 4: Deploying a Windows Container Instance 7. Chapter 5: Deploying an EC2 Windows-Based Task 8. Chapter 6: Deploying a Fargate Windows-Based Task 9. Part 3: Windows Containers on Amazon Elastic Kubernetes Service (EKS)
10. Chapter 7: Amazon EKS – Overview 11. Chapter 8: Preparing the Cluster for OS Interoperability 12. Chapter 9: Deploying a Windows Node Group 13. Chapter 10: Managing a Windows Pod 14. Part 4: Operationalizing Windows Containers on AWS
15. Chapter 11: Monitoring and Logging 16. Chapter 12: Managing a Windows Container's Image Life Cycle 17. Chapter 13: Working with Ephemeral Hosts 18. Chapter 14: Implementing a Container Image Cache Strategy 19. Chapter 15: AWS Windows Containers Deployment Tools 20. Index 21. Other Books You May Enjoy

How Windows Server implements resource controls for Windows containers

In order to understand how Windows Server implements resource controls for Windows containers, we first need to understand what a job object is. In the Windows kernel, a job object allows groups of processes to be managed as a unit, and Windows containers utilize job objects to group and track processes associated with each container.

Resource controls are enforced on the parent job object associated with the container. When you are running the Docker command to execute memory, CPU count, or CPU percentage limits, under the hood, you are asking the HCS to set these resource controls in the parent job object directly:

Figure 1.3 – Internal container runtime process to set resource controls

Figure 1.3 – Internal container runtime process to set resource controls

Resources that can be controlled include the following:

  • The CPU/processor
  • Memory/RAM
  • Disk/storage
  • Networking/throughput

The previous two topics gave us an understanding of how Windows Server exposes container primitives and how container runtimes such as Docker Engine and containerd interact with the Windows kernel. However, you shouldn’t worry too much about this. As a DevOps engineer and solution architect, it is essential to understand the concept and how it differs from Linux, but you will rarely work at the Windows kernel level when running Windows containers. The container runtime will take care of it for you.

You have been reading a chapter from
Running Windows Containers on AWS
Published in: Apr 2023
Publisher: Packt
ISBN-13: 9781804614136
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
Banner background image