Koschei: split resolver into build-resolver and repo-resolver

This commit is contained in:
Michael Simacek 2017-03-02 15:02:28 +01:00
parent 5d02ce0e63
commit b77f5736b4
15 changed files with 44 additions and 24 deletions

View file

@ -57,9 +57,3 @@ csi_relationship: |
- pkgdb2
- bastion (for mail relay)
- memcached01
koschei_backend_services:
- koschei-polling
- koschei-resolver
- koschei-scheduler
- koschei-watcher

View file

@ -47,14 +47,15 @@ config = dict(
],
{% endif %}
# mizdebsk says he thinks we'll need four sockets. Two services
# (koschei-resolver and koschei-polling) are only sending messages, one
# service (koschei-watcher) can both send and receive them. The wsgi
# webapp doesn't use fedmsg at all and all services are single-threaded
# mizdebsk says he thinks we'll need five sockets. Three services
# (koschei-{build,repo}-resolver and koschei-polling) are only sending
# messages, one service (koschei-watcher) can both send and receive
# them. The wsgi webapp doesn't use fedmsg at all and all services are
# single-threaded
# koschei-watcher uses two endpoints
"koschei.koschei-backend01": [
"tcp://koschei-backend01.%s:30%02i" % (suffix, i)
for i in range(4)
for i in range(5)
],
# koji is not listed here since it publishes to the fedmsg-relay

View file

@ -1,2 +1,2 @@
[Service]
MemoryLimit=3G
MemoryLimit=2G

View file

@ -4,8 +4,11 @@
- name: restart koschei-polling
action: service name=koschei-polling state=restarted
- name: restart koschei-resolver
action: service name=koschei-resolver state=restarted
- name: restart koschei-build-resolver
action: service name=koschei-build-resolver state=restarted
- name: restart koschei-repo-resolver
action: service name=koschei-repo-resolver state=restarted
- name: restart koschei-scheduler
action: service name=koschei-scheduler state=restarted

View file

@ -24,10 +24,14 @@
- name: install systemd config files
copy: >
src=systemd-memory-limit.conf
dest=/etc/systemd/system/koschei-resolver.service.d/memory-limit.conf
dest=/etc/systemd/system/{{ item }}.service.d/memory-limit.conf
with_items:
- koschei-build-resolver
- koschei-repo-resolver
notify:
- reload systemd
- restart koschei-resolver
- restart koschei-build-resolver
- restart koschei-repo-resolver
tags:
- koschei
- config

View file

@ -0,0 +1 @@
command[check_koschei_build_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-build-r -c 1:1

View file

@ -0,0 +1 @@
command[check_koschei_repo_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-repo-re -c 1:1

View file

@ -1 +0,0 @@
command[check_koschei_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-resolve -c 1:1

View file

@ -7,8 +7,15 @@ define service {
define service {
host_name koschei-backend01
service_description koschei-resolver process
check_command check_by_nrpe!check_koschei_resolver_proc
service_description koschei-build-resolver process
check_command check_by_nrpe!check_koschei_build_resolver_proc
use defaulttemplate
}
define service {
host_name koschei-backend01
service_description koschei-repo-resolver process
check_command check_by_nrpe!check_koschei_repo_resolver_proc
use defaulttemplate
}

View file

@ -243,7 +243,8 @@ command[check_openvpn_link]=/usr/lib64/nagios/plugins/check_ping -H 192.168.1.41
command[check_memcache]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -a '/usr/bin/memcached' -u memcached
command[check_memcache_connect]=/usr/lib64/nagios/plugins/check_memcache_connect
command[check_koschei_polling_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-polling -c 1:1
command[check_koschei_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-resolve -c 1:1
command[check_koschei_build_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-build-r -c 1:1
command[check_koschei_repo_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-repo-re -c 1:1
command[check_koschei_scheduler_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-schedul -c 1:1
command[check_koschei_watcher_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-watcher -c 1:1

View file

@ -0,0 +1 @@
command[check_koschei_build_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-build-r -c 1:1

View file

@ -0,0 +1 @@
command[check_koschei_repo_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-repo-re -c 1:1

View file

@ -1 +0,0 @@
command[check_koschei_resolver_proc]={{ libdir }}/nagios/plugins/check_procs -s RSD -u koschei -C koschei-resolve -c 1:1

View file

@ -7,8 +7,15 @@ define service {
define service {
host_name koschei-backend01.phx2.fedoraproject.org
service_description koschei-resolver process
check_command check_by_nrpe!check_koschei_resolver_proc
service_description koschei-build-resolver process
check_command check_by_nrpe!check_koschei_build_resolver_proc
use defaulttemplate
}
define service {
host_name koschei-backend01.phx2.fedoraproject.org
service_description koschei-repo-resolver process
check_command check_by_nrpe!check_koschei_repo_resolver_proc
use defaulttemplate
}

View file

@ -338,7 +338,8 @@ command[check_openvpn_link]=/usr/lib64/nagios/plugins/check_ping -H 192.168.1.41
command[check_memcache]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -a '/usr/bin/memcached' -u memcached
command[check_memcache_connect]=/usr/lib64/nagios/plugins/check_memcache_connect
command[check_koschei_polling_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-polling -c 1:1
command[check_koschei_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-resolve -c 1:1
command[check_koschei_build_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-build-r -c 1:1
command[check_koschei_repo_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-repo-re -c 1:1
command[check_koschei_scheduler_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-schedul -c 1:1
command[check_koschei_watcher_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-watcher -c 1:1