Skip to content

Commit 748e7c5

Browse files
lizhijianrdgshemesh2
authored andcommitted
[add-topo] Set kernel.pty.max to 8192 (sonic-net#19054)
What is the motivation for this PR? Support deploy thousands of ceos/net containers on a single server. How did you do it? Set kernel.pty.max to 8192 in add-topo ansible-playbook. How did you verify/test it? Verified by deploy physical testbed. Signed-off-by: Guy Shemesh <[email protected]>
1 parent d23603d commit 748e7c5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ansible/roles/vm_set/tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@
160160
become: yes
161161
when: host_distribution_version.stdout >= "20.04"
162162

163+
- name: Set kernel.pty.max to 8192
164+
become: true
165+
sysctl:
166+
name: kernel.pty.max
167+
value: 8192
168+
state: present
169+
sysctl_set: true
170+
reload: true
171+
sysctl_file: /etc/sysctl.d/99-pty.conf
172+
163173
- name: Update libvirt qemu configuration
164174
block:
165175
- name: Set user to root in qemu.conf

0 commit comments

Comments
 (0)