summaryrefslogtreecommitdiffstats
path: root/cpgx
Commit message (Collapse)AuthorAgeFilesLines
* cpgx: define MAX_NODES 8, 16, 32, 64David Teigland2009-11-201-17/+21
| | | | | | can build cpgx to support any of them Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: support up to 16 nodesDavid Teigland2009-08-041-23/+51
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: let events wrap around event bufferDavid Teigland2009-07-231-28/+29
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: fix sync_fromDavid Teigland2009-07-131-1/+23
| | | | | | when that node dies; add todo comments Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: add commentDavid Teigland2009-07-131-0/+3
| | | | | | note to stop using join/leave lists Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: fix syncDavid Teigland2009-07-131-22/+45
| | | | | | | the synced_nodes and sync_from weren't accounting for nodes that had been removed. Problems here found by Honza. Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: fix & vs &&David Teigland2009-06-261-1/+7
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: write debug buffer to stderr on errorDavid Teigland2009-06-121-2/+12
| | | | | | | | If an error occurs with debug/event output is disabled (-D0 -H0), then print the buffer of debug/event output to stderr before exit(1). The buffer is still written to /var/log/cluster/cpgx_debug.txt. Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: add -n option to set nameDavid Teigland2009-06-111-17/+26
| | | | | | of the cpg Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.2-gitDavid Teigland2009-06-091-1/+1
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.2David Teigland2009-06-092-2/+5
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: add -w optionDavid Teigland2009-06-091-1/+5
| | | | | | wait this many seconds between kill/restart Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.1-gitDavid Teigland2009-06-091-1/+1
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: munge makefileDavid Teigland2009-06-091-2/+2
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.1David Teigland2009-06-092-2/+5
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: munge restart messagesDavid Teigland2009-06-091-13/+16
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: improve optionsDavid Teigland2009-06-081-11/+17
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: option to just run iptablesDavid Teigland2009-06-051-2/+28
| | | | | | | | it can just be convenient -IA runs the iptables -A command -ID runs the iptables -D command Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: use iptables to kill nodesDavid Teigland2009-06-041-9/+34
| | | | | | | stop traffic with iptables prior to killing the corosync process; I think this tends to look more like a real node failure Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: improve killing and restartingDavid Teigland2009-06-031-9/+44
| | | | | | | of corosync or aisexec, and optionally by starting exec directly instead of via cman_tool Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.0-gitDavid Teigland2009-06-031-1/+1
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: build stuffDavid Teigland2009-06-032-1/+4
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: build stuffDavid Teigland2009-06-034-31/+40
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: makefile tarball stuffDavid Teigland2009-06-021-4/+3
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: fix spec file dateDavid Teigland2009-06-021-1/+1
|
* cpgx: version 1.0-gitDavid Teigland2009-06-021-1/+1
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version 1.0David Teigland2009-06-021-1/+1
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: also kill aisexecDavid Teigland2009-06-022-4/+11
| | | | | | with -d1 option Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: version and build stuffDavid Teigland2009-06-024-3/+74
| | | | | | | copying various build-related stuff from Nate, http://fedorapeople.org/gitweb?p=nstraz/public_git/gxpp.git Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: run options, better buildDavid Teigland2009-06-022-20/+53
| | | | | | | | . automate whitetank build stuff . -i <sec> option to specify how many seconds to run . -t <sec> option to specify timeout waiting for a dispatch Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: new makefileDavid Teigland2009-06-012-7/+50
| | | | | | | deal with lib64 and whitetank differences fix some warnings from -Wall Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: send syncs in join orderDavid Teigland2009-05-291-65/+56
| | | | | | | | . send syncs to nodes in order of their joining . tuning some constants . rewording, "exit" instead of "fail" Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: new die option to kill corosyncDavid Teigland2009-05-281-12/+45
| | | | | | | | | | test something similar to a node failure, as opposed to just a process failure, by kill -9 corosync, then cman_tool join May want to use iptables instead of killing corosync to better approximate a realistic node failure. Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: munge output textDavid Teigland2009-05-281-7/+7
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: more frequent sendingDavid Teigland2009-05-281-4/+3
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: simpler should_leave should_failDavid Teigland2009-05-281-4/+42
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: fix synced_nodes state transferDavid Teigland2009-05-281-70/+60
| | | | | | | | | The state of synced_nodes need to be snapshotted at the point of a joining node's confchg. Also some code munging. Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: sort nodeids in memb/left/join listsDavid Teigland2009-05-261-4/+22
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: add todo for sorting nodeidsDavid Teigland2009-05-261-0/+2
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: more workDavid Teigland2009-05-261-165/+233
| | | | | | | | | | | | | | . move code around . save debug log, write it out on error . configurable sync_max . don't save sync history (just header) to others while waiting for our sync . error if no dispatches for 10 sec . rework confchg leave/join/sync wait/done state checks . check for case where all others leave without sending us sync . check all events after time message . don't send syncs if we're leaving or left Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: move a lineDavid Teigland2009-05-221-2/+2
| | | | Signed-off-by: David Teigland <teigland@redhat.com>
* cpgx: initial importDavid Teigland2009-05-223-0/+1950
Signed-off-by: David Teigland <teigland@redhat.com>