Skip to content

Commit

Permalink
command-line tool for modifying slave configuration now works
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Oct 25, 2012
1 parent 57eeb62 commit 89d1e60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/gbrowse_add_slaves.pl
Expand Up @@ -26,6 +26,9 @@
gbrowse_update_renderers.pl --add http://coyote.acme.com:8081 \
--add http://roadrunner.acme.com:8081
This script does not actually provision new slaves. It is called after slaves
are provisioned (or deprovisioned) to update the configuration on the master and
restart the server.
USAGE
;
if (@ARGV && !@to_add && !@to_remove) {
Expand Down Expand Up @@ -63,4 +66,6 @@
close $f or die "Couldn't write: $!";
rename "$render_conf.new",$render_conf;

system "sudo /etc/init.d/apache2 graceful";

exit 0;
3 changes: 2 additions & 1 deletion conf/GBrowse.conf
Expand Up @@ -73,12 +73,13 @@ debug_external = 0
debug_plugins = 0

# Performance settings
renderfarm = 1
slave_timeout = 45
global_timeout = 60
search_timeout = 15
max_render_processes = 4 # try double number of CPU/cores

#include renderfarm.conf

# Clean up settings (used by the gbrowse_clean script)
expire session = 1M # expire unused sessions after a month
expire cache = 2h # expire cached data if unmodified for >2 hours
Expand Down
2 changes: 2 additions & 0 deletions conf/renderfarm.conf
@@ -1,3 +1,5 @@
[GENERAL]

renderfarm = 0

remote renderer =
Expand Down

0 comments on commit 89d1e60

Please sign in to comment.