Enable new mirrorlist server on proxy14
After a successful test of the new mirrorlist server code in staging, this is the next step. Try to make it work in production on one of the proxies. As discussed on the mailing list we are trying the new setup with proxy14. All the conditionals have been updated to be 'staging or proxy14' and the mirrorlist data generation has been enhanced to also write out the new protobuf based format on the backend system. At the same time this moves the pickle/protobuf generation from :55 to :30 as this generation takes much longer than it used to be and the mirrorlist server restarted at :15 was never using the new data during the last few months. Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
parent
12021e4212
commit
837032125a
4 changed files with 9 additions and 7 deletions
|
@ -1,8 +1,10 @@
|
|||
MAILTO=root
|
||||
|
||||
# Refresh the mirrorlist cache at the top of the hour and sync it to the
|
||||
# mirrorlist servers
|
||||
55 * * * * mirrormanager /usr/bin/mm2_update-mirrorlist-server && /usr/local/bin/sync_pkl_to_mirrorlists.sh
|
||||
# Refresh the mirrorlist cache once every hour.
|
||||
# This can take up to 35 minutes. The mirrorlist servers
|
||||
# are restarted :15 after the full hour. Starting at :30
|
||||
# should give us enough time.
|
||||
30 * * * * mirrormanager /usr/bin/mm2_update-mirrorlist-server -p && /usr/local/bin/sync_pkl_to_mirrorlists.sh
|
||||
|
||||
# update master directory
|
||||
# logs sent to /var/log/mirrormanager/umdl.log by default
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
MIRRORLIST_PROXY="{% for host in groups['mirrorlist_proxies'] %} {{ host }} {% endfor %}"
|
||||
|
||||
for s in ${MIRRORLIST_PROXY}; do
|
||||
rsync -az --delete-delay --delay-updates --delete /var/lib/mirrormanager/{*pkl,*txt} ${s}:/srv/mirrorlist/data/mirrorlist1/
|
||||
rsync -az --delete-delay --delay-updates --delete /var/lib/mirrormanager/{*pkl,*txt,*proto} ${s}:/srv/mirrorlist/data/mirrorlist1/
|
||||
done
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
- /var/log/mirrormanager
|
||||
tags:
|
||||
- mirrorlist_proxy
|
||||
when: env == 'staging'
|
||||
when: env == 'staging' or inventory_hostname.startswith('proxy14')
|
||||
|
||||
- name: set logrotate_read_inside_containers so logrotate works
|
||||
seboolean: name=logrotate_read_inside_containers state=yes persistent=yes
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
Description=Mirrorlist Container {{ item }}
|
||||
|
||||
[Service]
|
||||
{% if env == "staging" %}
|
||||
{% if env == "staging" or inventory_hostname == "proxy14.fedoraproject.org" %}
|
||||
User=mirrormanager
|
||||
{% endif %}
|
||||
ExecStartPre=-/usr/bin/podman stop %n
|
||||
ExecStartPre=-/usr/bin/podman rm %n --force
|
||||
{% if env == "staging" %}
|
||||
{% if env == "staging" or inventory_hostname == "proxy14.fedoraproject.org" %}
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--rm=true \
|
||||
--net=host --userns=keep-id \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue