-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rethinkdb' of https://github.com/sagemathinc/smc into r…
…ethinkdb
- Loading branch information
Showing
12 changed files
with
106 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1 @@ | ||
# services | ||
|
||
# Google Compute Engine | ||
[vmgce] | ||
|
||
# Cassandra nodes | ||
[cassandra] {'cluster_name':'salvus', 'path':'/mnt/cassandra', 'thrift_framed_transport_size_in_mb':'99', 'authenticator':'org.apache.cassandra.auth.PasswordAuthenticator', 'authorizer':'org.apache.cassandra.auth.CassandraAuthorizer', 'memtable_flush_writers':2, 'memtable_allocation_type':'offheap_objects', 'concurrent_compactors':'1'} | ||
|
||
# us-central1-c | ||
smc0-us-central1-c {'seed':True, 'topology':'us-central1:c', 'num_tokens':256} | ||
smc1-us-central1-c {'seed':False, 'topology':'us-central1:c', 'num_tokens':256} | ||
smc2-us-central1-c {'seed':True, 'topology':'us-central1:c', 'num_tokens':256} | ||
|
||
# us-central1-c | ||
#smc0-europe-west1-d {'seed':True, 'topology':'europe-west1:d', 'num_tokens':256} #, 'auto_bootstrap': False} | ||
#smc1-europe-west1-d {'seed':False, 'topology':'europe-west1:d', 'num_tokens':256} #, 'auto_bootstrap': False} | ||
#smc2-europe-west1-d {'seed':True, 'topology':'europe-west1:d', 'num_tokens':256} #, 'auto_bootstrap': False} | ||
|
||
[stunnel] {'sudo':True} | ||
edge | ||
|
||
[haproxy] {'sudo':True, 'insecure_redirect_port':80, 'sitename':'cloud.sagemath.com'} | ||
edge | ||
|
||
[nginx] | ||
nginx | ||
|
||
[hub] | ||
hub {'id':'0', 'port':'5000', 'proxy_port':'5001'} | ||
#hub {'id':'1', 'port':'5002', 'proxy_port':'5003'} | ||
#hub {'id':'2', 'port':'5004', 'proxy_port':'5005'} | ||
#hub {'id':'3', 'port':'5006', 'proxy_port':'5007'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
echo "loadavg `cat /proc/loadavg | awk '{ print $1, $2, $3 }'`" | ||
|
||
export P=`pidof node` | ||
export P=`pidof nodejs` | ||
echo "etime `ps -o etime --pid=$P | tail -1 | tr -d ' '`" | ||
echo "sign_in_timeouts `tail -n 2000 ~/salvus/salvus/data/logs/hub*.log |grep \"There was an error signing you in (Timeout after 30 seconds).\" |wc -l`" | ||
echo "sign_in_timeouts `tail -n 2000 ~/salvus/salvus/data/logs/hub*.log |grep \"There was an error signing you\" |wc -l`" | ||
|
||
check_hub_logs 5000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cd $SALVUS_ROOT | ||
echo "id='$1'; x={};require('compute').compute_server(db_hosts:['smc0-us-central1-c'],cb:(e,s)->console.log(e);x.s=s;x.s.project(project_id:id,cb:(e,p)->console.log(e);x.p=p;x.p.move(target:'$2',cb:(e)->console.log('DONE',e))))" | coffee | ||
echo "id='$1'; require('compute').compute_server(db_hosts:['db0'],cb:(e,s)->console.log(e);s.project(project_id:id,cb:(e,p)->console.log(e);p.move(target:'$2',cb:(e)->console.log('DONE',e);process.exit())))" | coffee |