GBROWSE...S_SLAVE(1p)
β¨ 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::EC2VM::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
- ubuntu questing: gbrowse 2.56+dfsg-12build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms