summerstar8 / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

在设置了多个worker node的情况下指定使用其中一个 #310

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我部署了三个C4在不同的平台上,平时会根据情况切换,一次
只用一个C4服务器,但是现在的实现我只能每次手动修改conf��
�件,将worker node 0 改为我需要的,因为指定多个worker 
node会轮流切换,这不是我要的结果,但是每次修改也很麻烦�
��所以希望能在设置了多个worker 
node的情况下指定使用其中一个

比如通过命令行参数
gsnova.exe 无参数,和以前一样,会轮流切换worker node

gsnova.exe -C4 0 只使用 C4 worker node 0

这样我可以自己写脚本方便切换,谢谢

Original issue reported on code.google.com by densetsu...@gmail.com on 4 Jan 2013 at 12:55

GoogleCodeExporter commented 9 years ago
可以加一个指定配置文件的参数 -f xx.conf

Original comment by yinqiwen@gmail.com on 5 Jan 2013 at 12:41

GoogleCodeExporter commented 9 years ago
gsnova -f xx.conf 后,提示:
flag provided but not defined: -f
Usage of gsnova:
  -server=false: Run as remote proxy server

Original comment by abch...@gmail.com on 8 Jan 2013 at 3:58

GoogleCodeExporter commented 9 years ago
目录我使用多个conf文件,是将gsnova所有文件在内拷贝多份使�
��的。

Original comment by abch...@gmail.com on 8 Jan 2013 at 4:02

GoogleCodeExporter commented 9 years ago
还不支持-f参数

Original comment by wangqiying@gmail.com on 9 Jan 2013 at 10:33

GoogleCodeExporter commented 9 years ago
3楼的方法不错。我是在gsnova目录下放置若干个配置好的conf文
件,然后分别写几个bat文件,实现用不同的配置文件来启动��
�
例如:gsnova_all.bat的内容就是
copy "gsnova - All.conf" "gsnova.conf" /Y
gsnova.exe

Original comment by duckt...@gmail.com on 10 Jan 2013 at 1:30