|
Revision 326, 1.1 kB
(checked in by gethema..@gmail.com, 1 month ago)
|
check in new backgroundrb code
|
| Line | |
|---|
| 1 |
|
|---|
| 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 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
:client: "10.0.0.1:11006,10.0.0.2:11007" |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
:schedules: |
|---|
| 20 |
:foo_worker: # worker name |
|---|
| 21 |
:barbar: #worker method |
|---|
| 22 |
:trigger_args: */5 * * * * * * #worker schedule |
|---|
| 23 |
|
|---|