Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
451fd882
Commit
451fd882
authored
Dec 22, 2016
by
张乐
Committed by
GitHub
Dec 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #493 from nobodyiam/optimize-schema
Optimize schema and default jvm setting for config service
parents
baba0b56
e1a62b14
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
26 deletions
+3
-26
startup.sh
apollo-configservice/src/main/scripts/startup.sh
+1
-1
apolloconfigdb.sql
scripts/sql/apolloconfigdb.sql
+1
-24
apolloportaldb.sql
scripts/sql/apolloportaldb.sql
+1
-1
No files found.
apollo-configservice/src/main/scripts/startup.sh
View file @
451fd882
...
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003171
SERVER_PORT
=
8080
## 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 ###########
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
View file @
451fd882
...
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
...
@@ -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
#
------------------------------------------------------------
...
...
@@ -303,7 +281,6 @@ CREATE TABLE `Release` (
`NamespaceName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'namespaceName'
,
`Configurations`
longtext
NOT
NULL
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'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
...
...
scripts/sql/apolloportaldb.sql
View file @
451fd882
...
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment