Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Incubator Pegasus
提交
6ff9d670
Incubator Pegasus
项目概览
apache
/
Incubator Pegasus
通知
9
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Incubator Pegasus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
6ff9d670
编写于
12月 20, 2018
作者:
Q
QinZuoyan
提交者:
GitHub
12月 20, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts: add option to skip building thirdparties; change default compression to lz4 (#240)
上级
f2d1300c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
12 deletion
+21
-12
.travis.yml
.travis.yml
+8
-4
rdsn
rdsn
+1
-1
run.sh
run.sh
+9
-1
scripts/clear_zk.sh
scripts/clear_zk.sh
+0
-1
scripts/start_zk.sh
scripts/start_zk.sh
+2
-3
scripts/stop_zk.sh
scripts/stop_zk.sh
+0
-1
src/server/config.ini
src/server/config.ini
+1
-1
未找到文件。
.travis.yml
浏览文件 @
6ff9d670
...
...
@@ -20,7 +20,8 @@ cache:
before_install
:
-
wget https://raw.githubusercontent.com/xiaomi/pegasus-common/master/build-depends.tar.gz
-
tar xf build-depends.tar.gz
-
tar xfz build-depends.tar.gz
-
rm -f build-depends.tar.gz
-
cd packages
-
ls | xargs sudo dpkg -i --force-depends
-
cd ..
...
...
@@ -33,13 +34,16 @@ install:
before_script
:
-
cd rdsn/thirdparty
-
wget https://raw.githubusercontent.com/xiaomi/pegasus-common/master/pegasus-thirdparty-prebuild.tar.gz
-
tar xf pegasus-thirdparty-prebuild.tar.gz
-
rm -
r
f pegasus-thirdparty-prebuild.tar.gz
-
tar xf
z
pegasus-thirdparty-prebuild.tar.gz
-
rm -f pegasus-thirdparty-prebuild.tar.gz
-
cd ../..
-
ulimit -c unlimited -S
script
:
-
./run.sh build && ./run.sh test
-
./run.sh build --skip_thirdparty && ./run.sh test
after_script
:
-
./run.sh stop_zk
notifications
:
email
:
false
rdsn
@
57ef116e
比较
62ad5b7a
...
57ef116e
Subproject commit
62ad5b7a25dee8c6015e702d75ff8d93768e0913
Subproject commit
57ef116eb036713a9594d3bf9023b572e9d9aa60
run.sh
浏览文件 @
6ff9d670
...
...
@@ -71,6 +71,7 @@ function usage_build()
echo
" -v|--verbose build in verbose mode, default no"
echo
" --disable_gperf build without gperftools, this flag is mainly used"
echo
" to enable valgrind memcheck, default no"
echo
" --skip_thirdparty whether to skip building thirdparties, default no"
}
function
run_build
()
{
...
...
@@ -85,6 +86,8 @@ function run_build()
WARNING_ALL
=
NO
ENABLE_GCOV
=
NO
RUN_VERBOSE
=
NO
DISABLE_GPERF
=
NO
SKIP_THIRDPARTY
=
NO
TEST_MODULE
=
""
while
[[
$#
>
0
]]
;
do
key
=
"
$1
"
...
...
@@ -136,7 +139,9 @@ function run_build()
;;
--disable_gperf
)
DISABLE_GPERF
=
YES
shift
;;
--skip_thirdparty
)
SKIP_THIRDPARTY
=
YES
;;
*
)
echo
"ERROR: unknown option
\"
$key
\"
"
...
...
@@ -192,6 +197,9 @@ function run_build()
if
[
"
$DISABLE_GPERF
"
==
"YES"
]
;
then
OPT
=
"
$OPT
--disable_gperf"
fi
if
[
"
$SKIP_THIRDPARTY
"
==
"YES"
]
;
then
OPT
=
"
$OPT
--skip_thirdparty"
fi
./run.sh build
$OPT
--notest
if
[
$?
-ne
0
]
;
then
echo
"ERROR: build rdsn failed"
...
...
scripts/clear_zk.sh
浏览文件 @
6ff9d670
...
...
@@ -19,4 +19,3 @@ then
rm
-rf
$ZOOKEEPER_HOME
/data &>/dev/null
echo
"Clearing zookeeper ... CLEARED"
fi
scripts/start_zk.sh
浏览文件 @
6ff9d670
...
...
@@ -30,7 +30,7 @@ if [ ! -f zookeeper-3.4.6.tar.gz ]; then
download_url
=
"http://git.n.xiaomi.com/pegasus/packages/raw/master/zookeeper-3.4.6.tar.gz"
wget
-T
5
-t
1
$download_url
if
[
$?
-ne
0
]
;
then
download_url
=
"https://github.com/
shengofsun/packages
/raw/master/zookeeper-3.4.6.tar.gz"
download_url
=
"https://github.com/
xiaomi/pegasus-common
/raw/master/zookeeper-3.4.6.tar.gz"
wget
-T
5
-t
1
$download_url
if
[
$?
-ne
0
]
;
then
echo
"ERROR: download zookeeper failed"
...
...
@@ -57,7 +57,7 @@ sed -i "s@clientPort=2181@clientPort=$ZOOKEEPER_PORT@" $ZOOKEEPER_HOME/conf/zoo.
mkdir
-p
$ZOOKEEPER_HOME
/data
$ZOOKEEPER_HOME
/bin/zkServer.sh start
sleep
0.
1
sleep
1
if
echo
ruok | nc localhost
$ZOOKEEPER_PORT
|
grep
-q
imok
;
then
echo
"Zookeeper started at port
$ZOOKEEPER_PORT
"
...
...
@@ -66,4 +66,3 @@ else
echo
"ERROR: start zookeeper failed"
exit
1
fi
scripts/stop_zk.sh
浏览文件 @
6ff9d670
...
...
@@ -17,4 +17,3 @@ if [ -d "$ZOOKEEPER_HOME" ]
then
$ZOOKEEPER_HOME
/bin/zkServer.sh stop
fi
src/server/config.ini
浏览文件 @
6ff9d670
...
...
@@ -267,7 +267,7 @@
rocksdb_level0_slowdown_writes_trigger
=
30
rocksdb_level0_stop_writes_trigger
=
60
rocksdb_disable_table_block_cache
=
false
rocksdb_compression_type
=
snappy
rocksdb_compression_type
=
lz4
checkpoint_reserve_min_count
=
3
checkpoint_reserve_time_seconds
=
3600
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录