root/trunk/examples/backgroundrb.yml

Revision 326, 1.1 kB (checked in by gethema..@gmail.com, 1 month ago)

check in new backgroundrb code

Line 
1 # A Sample YAML configuration file
2 ---
3 :backgroundrb:
4   :ip: 0.0.0.0 #ip on which backgroundrb server is running
5   :port: 11006 #port on which backgroundrb server is running
6   :environment: production # rails environment loaded, defaults to development
7   :debug_log: true # whether to print debug logs to a seperate worker, defaults to true
8   :log: foreground # will print log messages to STDOUT, defaults to seperate log worker
9   :result_storage: memcache # store results in a mecache cluster, you also need to specify location of your memcache clusters in next section
10
11 :memcache: "10.0.0.1:11211,10.0.0.2:11211" #=> location of mecache clusters seperated by comma
12
13 # following section is totally optional, and only useful if you are trying to cluster of backgroundrb server
14 # if you do not specify this section backgroundrb will assume that, from rails you are connecting to the
15 # backgroundrb server which has been specified in previous section
16 :client: "10.0.0.1:11006,10.0.0.2:11007"
17
18 # You specify your worker schedules here
19 :schedules:
20   :foo_worker: # worker name
21     :barbar: #worker method
22       :trigger_args: */5 * * * * * * #worker schedule
23
Note: See TracBrowser for help on using the browser.