Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wrr-cat
apollo
提交
451fd882
apollo
项目概览
wrr-cat
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
451fd882
编写于
12月 22, 2016
作者:
张
张乐
提交者:
GitHub
12月 22, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #493 from nobodyiam/optimize-schema
Optimize schema and default jvm setting for config service
上级
baba0b56
e1a62b14
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
3 addition
and
26 deletion
+3
-26
apollo-configservice/src/main/scripts/startup.sh
apollo-configservice/src/main/scripts/startup.sh
+1
-1
scripts/sql/apolloconfigdb.sql
scripts/sql/apolloconfigdb.sql
+1
-24
scripts/sql/apolloportaldb.sql
scripts/sql/apolloportaldb.sql
+1
-1
未找到文件。
apollo-configservice/src/main/scripts/startup.sh
浏览文件 @
451fd882
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003171
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003171
SERVER_PORT
=
8080
SERVER_PORT
=
8080
## Adjust memory settings if necessary
## Adjust memory settings if necessary
export
JAVA_OPTS
=
"-server -Xms
5632m -Xmx5632m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=2560m -XX:MaxNewSize=2560m -XX:SurvivorRatio=22
"
export
JAVA_OPTS
=
"-server -Xms
6144m -Xmx6144m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=4096m -XX:MaxNewSize=4096m -XX:SurvivorRatio=18
"
########### The following is the same for configservice, adminservice, portal ###########
########### The following is the same for configservice, adminservice, portal ###########
export
JAVA_OPTS
=
"
$JAVA_OPTS
-XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
export
JAVA_OPTS
=
"
$JAVA_OPTS
-XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
...
...
scripts/sql/apolloconfigdb.sql
浏览文件 @
451fd882
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
@@ -266,28 +266,6 @@ CREATE TABLE `NamespaceLock` (
...
@@ -266,28 +266,6 @@ CREATE TABLE `NamespaceLock` (
#
Dump
of
table
privilege
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`Privilege`
;
CREATE
TABLE
`Privilege`
(
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Name'
,
`PrivilType`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'PrivilType'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'NamespaceId'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
PRIMARY
KEY
(
`id`
),
KEY
`Name_PrivilType_NamespaceId`
(
`Name`
(
191
),
`PrivilType`
,
`NamespaceId`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'权限'
;
#
Dump
of
table
release
#
Dump
of
table
release
#
------------------------------------------------------------
#
------------------------------------------------------------
...
@@ -303,7 +281,6 @@ CREATE TABLE `Release` (
...
@@ -303,7 +281,6 @@ CREATE TABLE `Release` (
`NamespaceName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'namespaceName'
,
`NamespaceName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'namespaceName'
,
`Configurations`
longtext
NOT
NULL
COMMENT
'发布配置'
,
`Configurations`
longtext
NOT
NULL
COMMENT
'发布配置'
,
`IsAbandoned`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否废弃'
,
`IsAbandoned`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否废弃'
,
`Status`
tinyint
(
4
)
NOT
NULL
DEFAULT
'1'
COMMENT
'发布的状态,0:废弃 1:正常 2:灰度'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
...
...
scripts/sql/apolloportaldb.sql
浏览文件 @
451fd882
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录