GBROWSE...S_SLAVE(1p)

πŸ“¦
version 2.56 Β· 5 versions
, in ubuntu questing

✨ NAME ✨

gbrowse_sync_aws_slave.pl β€” bestie, this is the little script that syncs your local file system over to your GBrowse slave volume πŸ’– (it lives in section 1p of the User Contributed Perl Documentation, iykyk)


🌸 SYNOPSIS 🌸

% sudo gbrowse_sync_aws_slave.pl --conf     /etc/gbrowse2/aws_balancer.conf \
                                 --mysql    /var/lib/mysql \
                                 --postgres /var/lib/postgresql

syncing data....done
data stored in snapshot(s) snap-12345
updated conf file, previous version in /etc/gbrowse2/aws_balancer.conf.bak

like... it literally prints that back at you when it's done, so satisfying fr fr ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. This script runs in conjunction with Amazon Web Server-based GBrowse render slave load balancing β€” the whole thing is described way more in the manual page for gbrowse_aws_balancer.pl, so go read that if you want the full lore.

The gbrowse_sync_aws_script.pl script should be run on the GBrowse master machine every single time you add a new database to an existing data source, or if you add a whole new data source. no skips. What it does is prepare a new Amazon EBS snapshot containing a copy of all the data the GBrowse slave needs to run. That snapshot then gets attached to new slave instances. main character energy honestly πŸ‘‘

After running, it updates the conf file with the current versions of the slave AMI and the data snapshot(s).

% sudo gbrowse_sync_aws_script.pl --conf     /etc/gbrowse2/aws_balancer.conf \
                                  --mysql    /var/lib/mysql \
                                  --postgres /var/lib/postgresql

The --conf argument is required β€” no --conf, no party πŸ™ˆ The script will create a snapshot of the appropriate size, mount it on a temporary staging instance, and rsync a copy of your gbrowse databases directory (e.g. /var/lib/gbrowse2/databases) to the snapshot. If you've created mysql or postgres databases, you must also give the paths to their database file directories, as shown in the example above.

⚠️ heads up bestie!! Note that ALL your mysql and postgres data files located on the master machine will be copied β€” not just those used for track display. like, all of them. every last one. πŸ’€

πŸŽ€ ENVIRONMENT VARIABLES πŸŽ€

These environment variables get used if the corresponding command line options are not present:

  • EC2_ACCESS_KEY β€” AWS EC2 access key πŸ”‘
  • EC2_SECRET_KEY β€” AWS EC2 secret key 🀫

🌈 SEE ALSO 🌈

  • VM::EC2
  • VM::EC2::Staging::Manager

πŸ’œ AUTHOR πŸ’œ

Lincoln Stein, lincoln.stein@gmail.com

Copyright (c) 2013 Ontario Institute for Cancer Research

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.


and that's the whole page bestie 🫢 this one's from perl v5.40.0, dated 2024-10-20, and yeah the header/footer were giving GBROWSE...S_SLAVE(1p) the whole time πŸ’… slay, go sync those snapshots ✨

πŸ“¦ where this page comes from