Advertisement
Guest User

aids_conf.json

a guest
Jun 23rd, 2011
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { //# Comment
  2.   "interval_granularity" : 15, //# make it the highest common denominator of all intervals_seconds values
  3.   "intervals_seconds" : {
  4.     "rem_penalty" : 300, //# optional, interval in seconds to remove rem_penalty_interval_amt from a connection's penalty
  5.     "stuck_check" : 15, //# optional, interval in seconds to check if the miner is stuck
  6.     "switch_check" : 240 //# optional, interval in seconds to check if connection needs to switch to the lowest base_priority + penalty
  7.   },
  8.   "penalty_triggers" : { //# add as many as you want, examples below
  9.     "warnings" : {
  10.       "regex" : "(?i:warning|fail|problem)", //# regex to match against to trigger this penalty_trigger
  11.       "penalty" : 1 //# optional, default 0, penalty to apply to base_priority of a connection
  12.       //#"triggers_switch" : 1 //# optional, default 1, switch connection if this penalty_trigger is triggered
  13.       //#"repeat_penalty": 2, //# optional, default 0, penalty to apply to base_priority of a connection if this trigger repeats
  14.       //#"repeat_switch" : 1 //# optional, switch if a repeat is detected
  15.     },
  16.     "errors" : {
  17.       "regex" : "(?i:error|traceback|unavailable|disconnect)",
  18.       "penalty" : 2
  19.     },
  20.     "stuck" : {
  21.       "regex" : ".*",
  22.       "triggers_switch" : 0,
  23.       "stuck_penalty" : 1, //# optional, default 0, penalty to apply to base_priority of a connection if this miner is stuck
  24.       "stuck_switch" : 1 //# optional, switch if stuck
  25.     }
  26.   },
  27.   "connections" : { //# add as many as you want, examples below
  28.     "Pool 1 server 1" : {
  29.       "command" : "/usr/local/src/phoenix/phoenix.py -u http://user:pass@server1.domain.tld:8332/ -k phatk DEVICE=0 FASTLOOP=false VECTORS AGGRESSION=12 BFI_INT", //# miner command line, note that aids.pl will cd to the directory that the miner is in
  30.       "base_priority" : 0, //# the lowest base_priority + penalties is chosen when a switch occurs
  31.       "rem_penalty_interval_amt" : 1, //# penalty amount to remove during rem_penalty check, can be 0
  32.       //#"switch_after_sec" : 60, //# optional, force a switch off of this connection after this many seconds
  33.       //#"switch_after_sec_penalty" : 3, //# optional, penalty to apply after a switch_after_sec switch
  34.       //#"conduit" : "pty-pipe", //# optional, setting may help with certain miner's output not being captured see http://search.cpan.org/~rcaputo/POE/lib/POE/Wheel/Run.pm#Conduit
  35.       //#"nostream" : 0, //# optional, send newlines instead of streamed output from miner
  36.       "applicable_triggers" : [ //# which penalty_triggers this connection uses, all of them if applicable_triggers is not defined
  37.         "warnings",
  38.         "errors",
  39.         "stuck"
  40.       ]
  41.     },
  42.     "Pool 1 server 2" : {
  43.       "command" : "/usr/local/src/phoenix/phoenix.py -u http://user:pass@server2.domain.tld:8332/ -k phatk DEVICE=0 FASTLOOP=false VECTORS AGGRESSION=12 BFI_INT",
  44.       "base_priority" : 1,
  45.       "rem_penalty_interval_amt" : 1
  46.     },
  47.     "Pool 2 server 1" : {
  48.       "command" : "/usr/local/src/phoenix/phoenix.py -u http://user:pass@server1.domain2.tld:8332/ -k phatk DEVICE=0 FASTLOOP=false VECTORS AGGRESSION=12 BFI_INT",
  49.       "base_priority" : 2,
  50.       "rem_penalty_interval_amt" : 1
  51.     },
  52.     "local bitcoind" : {
  53.       "command" : "usr/local/src/phoenix/phoenix.py -u http://user:pass@127.0.0.1:8332/;askrate=5 -k phatk DEVICE=0 VECTORS AGGRESSION=12 BFI_INT",
  54.       "base_priority" : 3,
  55.       "rem_penalty_interval_amt" : 1
  56.     }
  57.   }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement