Skip to content

Commit fe6245a

Browse files
committed
Added Optimizing compute resources content to 4.0
1 parent eb6b92e commit fe6245a

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed

_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ Topics:
111111
File: scaling-cluster-monitoring-operator
112112
- Name: Planning your environment according to object limits
113113
File: planning-your-environment-according-to-object-limits
114+
- Name: Optimizing compute resources
115+
File: optimizing-compute-resources
114116
---
115117
Name: Operators
116118
Dir: operators
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// scalability_and_performance/optimizing-compute-resources.adoc
4+
5+
[id='how-to-debug-issues-with-rhel-tools-{context}']
6+
= Debugging scaling or performance issues using the RHEL Tools container image
7+
8+
Red Hat distributes a `rhel-tools` container image, packaging tools that aid in
9+
debugging scaling or performance problems. This container image:
10+
11+
* Allows users to deploy minimal footprint container hosts by moving packages out
12+
of the base distribution and into this support container.
13+
14+
* Provides debugging capabilities for Red Hat Enterprise Linux 7 Atomic Host,
15+
which has an immutable package tree. `rhel-tools` includes utilities such as
16+
tcpdump, sosreport, git, gdb, perf, and many more common system administration
17+
utilities.
18+
19+
.Procedure
20+
21+
. to use the rhel-tools` container, run:
22+
+
23+
----
24+
# atomic run rhel7/rhel-tools
25+
----
26+
27+
.Additional resources
28+
29+
* link:https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/7/getting-started-with-containers/chapter-11-using-the-atomic-tools-container-image[RHEL
30+
Tools Container documentation ]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// scalability_and_performance/optimizing-compute-resources.adoc
4+
5+
[id='using-a-pre-deployed-image-to-improve-efficiency-{context}']
6+
= Using a pre-deployed image to improve efficiency
7+
8+
You can create a base {product-title} image with a number of tasks built-in to
9+
improve efficiency, maintain configuration consistency on all node hosts, and
10+
reduce repetitive tasks. This is known as a pre-deployed image. For example,
11+
because every node requires the `ose-pod` image in order to run pods, each node
12+
has to periodically connect to the container image registry in order to pull the
13+
latest image. This can become problematic when you have 100 nodes attempting
14+
this at the same time, and can lead to resource contention on the image
15+
registry, waste of network bandwidth, and increased pod launch times.
16+
17+
.Procedure
18+
19+
To build a pre-deployed image:
20+
21+
. Create an instance of the type and size required.
22+
23+
. Ensure a dedicated storage device is available for CRI-O or local image
24+
or container storage, separate from any persistent volumes for containers.
25+
26+
. Fully update the system, and ensure CRI-O or Docker is installed.
27+
28+
. Ensure the host has access to all yum repositories.
29+
30+
. Set up thin-provisioned LVM storage.
31+
32+
. Pre-pull your commonly used images (such as the rhel7 base image), as well as
33+
{product-title} infrastructure container images (`ose-pod`, `ose-deployer`, and
34+
so on) into your pre-deployed image.
35+
36+
. Ensure that pre-deployed images are configured for any appropriate cluster
37+
configurations, such as being able to run on Red Hat OpenStack, or Amazon Web
38+
Services (AWS), as well as any other cluster configurations.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[id='optimizing-compute-resources']
2+
= Optimizing compute resources
3+
include::modules/common-attributes.adoc[]
4+
:context:
5+
6+
toc::[]
7+
8+
9+
Containers can specify compute resource requests and limits. Requests are used
10+
for scheduling your container and provide a minimum service guarantee. Limits
11+
constrain the amount of compute resource that may be consumed on your node.
12+
13+
The scheduler attempts to optimize the compute resource use across all nodes in
14+
your cluster. It places pods onto specific nodes, taking the pods' compute
15+
resource requests and nodes' available capacity into consideration.
16+
17+
Requests and limits enable administrators to allow and manage the overcommitment
18+
of resources on a node, which may be desirable in development environments where
19+
a tradeoff of guaranteed performance for capacity is acceptable.
20+
21+
include::modules/using-a-pre-deployed-image-to-improve-efficiency.adoc[leveloffset=+1]
22+
23+
include::modules/debugging-issues-with-rhel-tools.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)