1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/direct
Ronnie sahlberg 4b6fbe7be1 create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster.
create a small test application that connects to the ctdb daemon at /tmp/ctdb.socket.127.0.0.1 and do some commands to the daemon.
currently this test tool only opens the socket and registers its pid with the daemon
(the daemon needs to know the pid so that it can forward messages to the correct client)

the test will be extended with additional ctdb commands

(This used to be ctdb commit 801f6127cdd50c5b2d0e64dd8db08500af9dadc9)
2007-04-11 18:54:22 +10:00
..
ctdbd_test.c create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster. 2007-04-11 18:54:22 +10:00
ctdbd.c create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster. 2007-04-11 18:54:22 +10:00
ctdbd.sh create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster. 2007-04-11 18:54:22 +10:00
nodes.txt create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster. 2007-04-11 18:54:22 +10:00
README create a standalone ctdb daemon and a script ./direct/ctdbd.sh to start two such daemons in a 2 node cluster. 2007-04-11 18:54:22 +10:00

Run ./direct/ctdbd.sh to start a cluster with two ctdb nodes
They will listen for clients on the unix domain sockets
/tmp/ctdb.socket.127.0.0.1
/tmp/ctdb.socket.127.0.0.2

In order for this to work you must have an interface with the address 127.0.0.2 available.
Just create this as an alias for loopback.


Then run ./direct/ctdbd_test to connect a client to the ctdbd daemon on /tmp/ctdb.socket.127.0.0.1 and do some commands to it across the domain socket.