git clone https://github.com/apache/incubator-shardingsphere.git;
cd incubarot-shardingsphere;
mvn clean install -Prelease;
发布包所在目录为:/sharding-distribution/sharding-scaling-distribution/target/apache-shardingsphere-incubating-${latest.release.version}-sharding-scaling-bin.tar.gz
。
conf/server.yaml
,这里主要修改启动端口,保证不与本机其他端口冲突,其他值保持默认即可:port: 8888
blockQueueSize: 10000
pushTimeout: 1000
workerThread: 30
sh bin/start.sh
查看日志logs/stdout.log
,确保启动成功。
使用curl命令再次确认正常运行。
curl -X GET http://localhost:8888/shardingscaling/job/list
应答应为:
{"success":true,"errorCode":0,"errorMsg":null,"model":[]}
sh bin/stop.sh
应用现有配置项如下,相应的配置可在conf/server.yaml
中修改:
名称 | 说明 | 默认值 |
---|---|---|
port | HTTP服务监听端口 | 8888 |
blockQueueSize | 数据传输通道队列大小 | 10000 |
pushTimeout | 数据推送超时时间,单位ms | 1000 |
workerThread | 工作线程池大小,允许同时运行的迁移任务线程数 | 30 |