PushMirroring

Differences between revisions 1 and 2
Revision 1 as of 2010-02-12 23:15:41
Size: 3328
Editor: bb-87-80-70-153
Comment: Created page for review.
Revision 2 as of 2010-02-12 23:16:21
Size: 3328
Editor: bb-87-80-70-153
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
So instead of relying on cron jobs to keep things in sync, mirrors can be asked to sync when it is necessary. SSH is usually preferred, however we do have HTTP and email triggers if needed. So instead of relying on cron jobs to keep things in sync, mirrors can be asked to sync when it is necessary. SSH is usually used, however we can offer HTTP and email triggers if preferred.

Push mirroring

As explained on Debian's documentation on this subject:

Push mirroring is a form of mirroring that minimizes the time it takes for changes to the main archive to reach mirrors. The server mirror uses a triggering mechanism to immediately inform the client mirror that it needs to be updated.

Push mirroring takes a little more effort to set up since the maintainers of the upstream and downstream mirror must exchange information. The benefit is that the upstream mirror initiates the mirror process immediately after its archive has been updated. This allows changes to the archive to propagate extremely quickly. 

So instead of relying on cron jobs to keep things in sync, mirrors can be asked to sync when it is necessary. SSH is usually used, however we can offer HTTP and email triggers if preferred.

Set-up

Your mirror should have previously been set-up to use cron jobs and mirroring scripts. Such scripts can be found here.

We recommend that you create an ubuntu user and grant it permissions to the directory where your mirror is stored. Then place the keys below (or from whichever mirror you are syncing from) into that user's authorized_keys file.

When the upstream mirror connects as the ubuntu user to your mirror, it will run the script and background the process. Meanwhile the rsync command will connect to the upstream mirror and sync any changes as needed.

When this set-up has been completed, please let us know and we'll set-up the necessary trigger commands on our end.

Keys

These are the SSH keys used for triggering archive and releases mirrors respectively. Please be sure to change the command= option to the location of your mirroring script and do not remove the backgrounding character (&) after it.

Archive trigger key

SSH key fingerprint: d9:78:66:1c:f4:85:70:53:a1:b0:41:e2:b2:55:1f:62

no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="~/archive-sync &",from="91.189.90.154" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqRDHVNrPSNCGFkMj6E7BKuZgDlqg8oGbyQR8XJxElwpsHTwsKTptfz+5Ygq/4e9nlVxCmp1ONX7p066pcaMPgrHxoCbcHxt7lCelK4oFIPt4hN+OLHBXRgYwOvMMFOP0818pnpcBjqH1H2mH+qfxWFplRXdE/FbCDEP0679pjO4RNNXn8meJH7DoeBmyUaInPOsWqv8LyMww0CUhTXFE6HxpMowMX+OUtLLO+X+4vLXHde8BmOE6AAJFR9G5caMnfttplZottpLaqW8GQcbZSzK+wYIsOC0fdHN4u37HN8h3tuWifuE2FjFxgUuK88zWzhBpiG8i+qdqxipwA3Tr8w== archvsync@syowa

Releases trigger key

SSH key fingerprint: ff:79:41:eb:c7:7d:00:d4:78:34:28:d1:d2:f0:ae:90

no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="~/releases-sync &",from="91.189.90.154" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7l6nWM6Z2KfR4KmwF29Fv9nAgTLwHM5H/TWhinl7DZDG+Jn+TC9kll3cuyGByhwh/mNTwbyvsyiDSXFtbglowQoPSW4rhOEVy6s+/lDjDBGTDsgk8wyBqlNJRlppODsl+kqX0IqAIc3XJ9luDl894tD5rxhiXzqXL3c8r8CuhPkGdUCCMbWU4OUAIjIAs8DClYzjrAZ54IVbk5gTjDYUtlSLNXjm1rZ788h65waKBn4/LV+8nEaFIPA9FxPZI6VLmKGO/RQqZrLPNKOzotmkofV1jV2OmQNHzIwu2seV6HGYqZc3U9jE2+Eat86C6IMYS7KPxVoQd6AnHjRMlhyb6Q== archvsync@syowa

Mirrors/PushMirroring (last edited 2022-04-26 05:32:22 by hloeung)