def subcmd_slave(args): from resource import GLUSTER, Popen Popen.init_errhandler() slavevol = args.slave.split("::")[-1] local = GLUSTER("localhost", slavevol) local.connect() local.service_loop()
def subcmd_slave(args): from resource import GLUSTER, Popen Popen.init_errhandler() slavevol = args.slave.split("::")[-1] local = GLUSTER("localhost", slavevol) local.connect() local.service_loop()
def subcmd_worker(args): import os import fcntl from resource import GLUSTER, SSH, Popen Popen.init_errhandler() fcntl.fcntl(args.feedback_fd, fcntl.F_SETFD, fcntl.FD_CLOEXEC) local = GLUSTER("localhost", args.master) slavehost, slavevol = args.slave.split("::") remote = SSH(slavehost, slavevol) remote.connect_remote() local.connect() logging.info("Worker spawn successful. Acknowledging back to monitor") os.close(args.feedback_fd) local.service_loop(remote)
def subcmd_worker(args): import os import fcntl from resource import GLUSTER, SSH, Popen Popen.init_errhandler() fcntl.fcntl(args.feedback_fd, fcntl.F_SETFD, fcntl.FD_CLOEXEC) local = GLUSTER("localhost", args.master) slavehost, slavevol = args.slave.split("::") remote = SSH(slavehost, slavevol) remote.connect_remote() local.connect() logging.info("Worker spawn successful. Acknowledging back to monitor") os.close(args.feedback_fd) local.service_loop(remote)