synchronized (this) {
// 重新再取一次, dobble-check
List<String> currentProcesses = zookeeper.getChildren(path);
size = ArbitrateConfigUtils.getParallelism(getPipelineId()) - currentProcesses.size();
if (size > 0) {// 创建一个节点
ProcessNodeEventData nodeData = new ProcessNodeEventData();
nodeData.setStatus(ProcessNodeEventData.Status.UNUSED);// 标记为未使用
nodeData.setMode(ArbitrateMode.RPC);
nodeData.setNid(ArbitrateConfigUtils.getCurrentNid());
byte[] nodeBytes = JsonUtils.marshalToByte(nodeData);
String processPath = zookeeper.create(path + "/", nodeBytes, CreateMode.PERSISTENT_SEQUENTIAL);
// 创建为顺序的节点
String processNode = StringUtils.substringAfterLast(processPath, "/");
Long processId = StagePathUtils.getProcessId(processNode);// 添加到当前的process列表