Skip to content

Commit fc3933c

Browse files
authored
fix: reserve the port for postgres_exporter with sysctl (#1953)
1 parent 36ff81c commit fc3933c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ansible/tasks/setup-system.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@
154154
value: 60
155155
state: 'present'
156156

157+
# postgres_exporter runs on port 9187 and postgresT occasionlly chooses it as random srcport
158+
- name: Set net.ipv4.ip_local_reserved_ports=9187
159+
ansible.builtin.sysctl:
160+
name: 'net.ipv4.ip_local_reserved_ports'
161+
value: 9187
162+
state: 'present'
163+
157164
- name: Execute tasks when (debpkg_mode or nixpkg_mode)
158165
when:
159166
- (debpkg_mode or nixpkg_mode)

0 commit comments

Comments
 (0)