minor changes
This commit is contained in:
parent
7b6c904493
commit
9748f4be67
|
@ -162,16 +162,6 @@ int vnodeProcessQueryReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp);
|
||||||
*/
|
*/
|
||||||
int vnodeProcessFetchReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp);
|
int vnodeProcessFetchReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Process a consume message.
|
|
||||||
*
|
|
||||||
* @param pVnode The vnode object.
|
|
||||||
* @param pMsg The request message
|
|
||||||
* @param pRsp The response message
|
|
||||||
* @return int 0 for success, -1 for failure
|
|
||||||
*/
|
|
||||||
int vnodeProcessConsumeReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp);
|
|
||||||
|
|
||||||
/* ------------------------ SVnodeCfg ------------------------ */
|
/* ------------------------ SVnodeCfg ------------------------ */
|
||||||
/**
|
/**
|
||||||
* @brief Initialize VNODE options.
|
* @brief Initialize VNODE options.
|
||||||
|
|
|
@ -28,8 +28,3 @@ int vnodeProcessSyncReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp) {
|
||||||
vInfo("sync message is processed");
|
vInfo("sync message is processed");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vnodeProcessConsumeReq(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp) {
|
|
||||||
vInfo("consume message is processed");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,20 +2,19 @@ system sh/stop_dnodes.sh
|
||||||
|
|
||||||
|
|
||||||
############## config parameter #####################
|
############## config parameter #####################
|
||||||
$node1 = 192.168.101.174
|
$node1 = 192.168.0.201
|
||||||
$node2 = 192.168.0.202
|
$node2 = 192.168.0.202
|
||||||
$node2 = 192.168.0.203
|
$node3 = 192.168.0.203
|
||||||
$node3 = 192.168.0.204
|
$node4 = 192.168.0.204
|
||||||
|
|
||||||
$first = 1
|
|
||||||
$num = 5
|
|
||||||
$self = $node1
|
$self = $node1
|
||||||
|
$num = 25
|
||||||
|
|
||||||
############### deploy firstEp #####################
|
############### deploy firstEp #####################
|
||||||
|
|
||||||
$firstEp = $node1 . :7100
|
$firstEp = $node1 . :7100
|
||||||
$firstPort = 7100
|
$firstPort = 7100
|
||||||
if $first == 1 then
|
if $self == $node1 then
|
||||||
system sh/deploy.sh -n dnode1 -i 1
|
system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/cfg.sh -n dnode1 -c firstEp -v $firstEp
|
system sh/cfg.sh -n dnode1 -c firstEp -v $firstEp
|
||||||
system sh/cfg.sh -n dnode1 -c secondEp -v $firstEp
|
system sh/cfg.sh -n dnode1 -c secondEp -v $firstEp
|
||||||
|
@ -28,7 +27,7 @@ if $first == 1 then
|
||||||
$i = 0
|
$i = 0
|
||||||
while $i < $num
|
while $i < $num
|
||||||
$port = $i * 100
|
$port = $i * 100
|
||||||
$port = $port + 8000
|
$port = $port + 8100
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
sql create dnode $node1 port $port
|
sql create dnode $node1 port $port
|
||||||
endw
|
endw
|
||||||
|
@ -36,7 +35,7 @@ if $first == 1 then
|
||||||
$i = 0
|
$i = 0
|
||||||
while $i < $num
|
while $i < $num
|
||||||
$port = $i * 100
|
$port = $i * 100
|
||||||
$port = $port + 8000
|
$port = $port + 8100
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
sql create dnode $node2 port $port
|
sql create dnode $node2 port $port
|
||||||
endw
|
endw
|
||||||
|
@ -44,7 +43,7 @@ if $first == 1 then
|
||||||
$i = 0
|
$i = 0
|
||||||
while $i < $num
|
while $i < $num
|
||||||
$port = $i * 100
|
$port = $i * 100
|
||||||
$port = $port + 8000
|
$port = $port + 8100
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
sql create dnode $node3 port $port
|
sql create dnode $node3 port $port
|
||||||
endw
|
endw
|
||||||
|
@ -52,7 +51,7 @@ if $first == 1 then
|
||||||
$i = 0
|
$i = 0
|
||||||
while $i < $num
|
while $i < $num
|
||||||
$port = $i * 100
|
$port = $i * 100
|
||||||
$port = $port + 8000
|
$port = $port + 8100
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
sql create dnode $node4 port $port
|
sql create dnode $node4 port $port
|
||||||
endw
|
endw
|
||||||
|
@ -64,7 +63,7 @@ $i = 0
|
||||||
while $i < $num
|
while $i < $num
|
||||||
$index = $i + 80
|
$index = $i + 80
|
||||||
$port = $i * 100
|
$port = $i * 100
|
||||||
$port = $port + 8000
|
$port = $port + 8100
|
||||||
$dnodename = dnode . $index
|
$dnodename = dnode . $index
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
|
||||||
|
@ -74,5 +73,5 @@ while $i < $num
|
||||||
system sh/cfg.sh -n $dnodename -c fqdn -v $self
|
system sh/cfg.sh -n $dnodename -c fqdn -v $self
|
||||||
system sh/cfg.sh -n $dnodename -c serverPort -v $port
|
system sh/cfg.sh -n $dnodename -c serverPort -v $port
|
||||||
|
|
||||||
#system sh/exec.sh -n $dnodename -s start
|
system sh/exec.sh -n $dnodename -s start
|
||||||
endw
|
endw
|
||||||
|
|
Loading…
Reference in New Issue