production:shaman.ceph.com
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| production:shaman.ceph.com [2020/03/07 01:00] – djgalloway | production:shaman.ceph.com [2023/04/06 00:51] (current) – [Summary] dmick | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| There are three VMs in the [[https:// | There are three VMs in the [[https:// | ||
| - | * shaman.ceph.com is just a load balancing VM | + | * shaman.ceph.com is just a load balancing VM. Accesses are proxied to either 1.shaman.ceph.com or 2.shaman.ceph.com with an ' |
| * 1.shaman.ceph.com is the primary shaman node that has the postgres DB with all the repo information | * 1.shaman.ceph.com is the primary shaman node that has the postgres DB with all the repo information | ||
| * 2.shaman.ceph.com is a **READ ONLY** backup in the event 1.shaman.ceph.com goes down | * 2.shaman.ceph.com is a **READ ONLY** backup in the event 1.shaman.ceph.com goes down | ||
| + | * 2.shaman.ceph.com can handle write requests because pecan, the web framework, is also aware of the primary/hot standby configuration, | ||
| ===== User Access ===== | ===== User Access ===== | ||
| Line 66: | Line 67: | ||
| irvingi_builds = {} | irvingi_builds = {} | ||
| braggi_builds = {} | braggi_builds = {} | ||
| + | adami_builds = {} | ||
| rest_of_the_world = {} | rest_of_the_world = {} | ||
| ovh_count = 0 | ovh_count = 0 | ||
| irvingi_count = 0 | irvingi_count = 0 | ||
| braggi_count = 0 | braggi_count = 0 | ||
| + | adami_count = 0 | ||
| for build in builds: | for build in builds: | ||
| Line 82: | Line 85: | ||
| mapping = braggi_builds | mapping = braggi_builds | ||
| counter = braggi_count | counter = braggi_count | ||
| + | elif ' | ||
| + | mapping = adami_builds | ||
| + | counter = adami_count | ||
| else: | else: | ||
| mapping = rest_of_the_world | mapping = rest_of_the_world | ||
| Line 90: | Line 96: | ||
| mapping[node_name] = 1 | mapping[node_name] = 1 | ||
| | | ||
| - | for mapping in [ovh_builds, | + | for mapping in [ovh_builds, |
| count = 0 | count = 0 | ||
| for key, value in mapping.items(): | for key, value in mapping.items(): | ||
| Line 108: | Line 114: | ||
| In [4]: two_week_stats.report() | In [4]: two_week_stats.report() | ||
| + | </ | ||
| + | |||
| + | ==== Delete builds/ | ||
| + | HYPOTHETICALLY ;-) if a repo/build got pushed to shaman that contains an embargoed security fix, you can delete the entries from shaman' | ||
| + | |||
| + | < | ||
| + | ssh 1.shaman.ceph.com | ||
| + | sudo su - postgres | ||
| + | |||
| + | postgres@1: | ||
| + | psql (9.5.23) | ||
| + | Type " | ||
| + | |||
| + | shaman=# \dt | ||
| + | List of relations | ||
| + | | ||
| + | --------+-----------------+-------+-------- | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | (6 rows) | ||
| + | |||
| + | shaman=# delete from public.builds where sha1 = ' | ||
| + | DELETE 6 | ||
| + | |||
| + | shaman=# select id from public.repos where sha1 = ' | ||
| + | | ||
| + | -------- | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 1 | ||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 2 | ||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 2 | ||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 2 | ||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 2 | ||
| + | shaman=# delete from public.archs where repo_id = ' | ||
| + | DELETE 1 | ||
| + | shaman=# delete from public.repos where sha1 = ' | ||
| + | DELETE 6 | ||
| </ | </ | ||
production/shaman.ceph.com.1583542856.txt.gz · Last modified: by djgalloway
