-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(config): support starting pd nodes & store nodes #16
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4309b8e
feat(config): support starting pd nodes & store nodes
HJ-Young bc79e1a
Merge remote-tracking branch 'origin/master'
HJ-Young 13c5d2b
fix(config): support different backend =
HJ-Young b08ae0d
fix(config): pass the test
HJ-Young 6172236
fix(config): fix path in deploy_graph.py
HJ-Young 873a288
fix(config): wait for pd & store to start
HJ-Young 819ef3d
chore(readme): update README.md
HJ-Young 2cafc3c
fix(config): fix the config file
HJ-Young 96320b5
Update src/deploy_start.py
imbajin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could use 100 or 120 as the line wrapping standard, no need wrap too early |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,12 @@ def graph_deploy(param, conf_obj): | |
Deploy.server(conf_obj) | ||
elif param == 'toolchain': | ||
Deploy.toolchain(conf_obj) | ||
elif param == 'pd': | ||
Deploy.pd(conf_obj) | ||
elif param == 'store': | ||
Deploy.store(conf_obj) | ||
elif param == 'hugegraph': | ||
Deploy.hugegraph(conf_obj) | ||
else: | ||
Deploy.server(conf_obj) | ||
Deploy.toolchain(conf_obj) | ||
|
@@ -32,8 +38,13 @@ def graph_deploy(param, conf_obj): | |
if __name__ == "__main__": | ||
param_size = len(sys.argv) | ||
if param_size == 2 \ | ||
and sys.argv[1] in ['all', 'server', 'toolchain']: | ||
and sys.argv[1] in ['all', 'server', 'toolchain', 'pd', 'store', 'hugegraph']: | ||
graph_deploy(sys.argv[1], basic_config) | ||
elif param_size == 3 \ | ||
and sys.argv[1] in ['all', 'server', 'toolchain', 'pd', 'store', 'hugegraph']\ | ||
and sys.argv[2] in ['hbase', 'hstore', 'cassandra', 'mysql', 'rocksdb', 'scylladb']: | ||
basic_config.server_backend = sys.argv[2] | ||
graph_deploy(sys.argv[1], basic_config) | ||
else: | ||
print('failed: 执行脚本参数为[all,server,toolchain]') | ||
print('failed: 执行脚本参数为[all,server,toolchain, pd, store, hugegraph]') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sort the order from big -> small (scope)
imbajin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
gremlin.graph=org.apache.hugegraph.HugeFactory | ||
|
||
# cache config | ||
#schema.cache_capacity=100000 | ||
# vertex-cache default is 1000w, 10min expired | ||
vertex.cache_type=l2 | ||
#vertex.cache_capacity=10000000 | ||
#vertex.cache_expire=600 | ||
# edge-cache default is 100w, 10min expired | ||
edge.cache_type=l2 | ||
#edge.cache_capacity=1000000 | ||
#edge.cache_expire=600 | ||
|
||
|
||
# schema illegal name template | ||
#schema.illegal_name_regex=\s+|~.* | ||
|
||
#vertex.default_label=vertex | ||
|
||
store=hugegraph | ||
|
||
# task config | ||
task.scheduler_type=local | ||
task.schedule_period=10 | ||
task.retry=0 | ||
task.wait_timeout=10 | ||
|
||
# search config | ||
search.text_analyzer=jieba | ||
search.text_analyzer_mode=INDEX | ||
|
||
backend=cassandra | ||
serializer=cassandra | ||
|
||
# cassandra backend config | ||
cassandra.host=localhost | ||
cassandra.port=9042 | ||
cassandra.username= | ||
cassandra.password= | ||
#cassandra.connect_timeout=5 | ||
#cassandra.read_timeout=20 | ||
|
||
#cassandra.keyspace.strategy=SimpleStrategy | ||
#cassandra.keyspace.replication=3 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hugegraph
represents "server + pd + store"?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, use hugegraph to start a cluster including 1 pd, 1 store and 1 server