Closed JackyYangPassion closed 11 months ago
If you take a look at the constructor of Session, you can see it takes a Config
object, which you could highly customized via config = Config(); config.coordinator.monitor_port=9900
. The detailed configurable items are in python/config.py
Thanks for the reply. The setting was successful!
>>> from graphscope.Config import Config
>>> config = Config()
>>> config.coordinator.monitor=true
>>> sess = graphscope.session( cluster_type='hosts',
enabled_engines='interactive',
vineyard_shared_mem='1Gi',
num_workers=1,
config=config)
but the coordinator indicator collection did not take effect.
get gscoordinator metrics curl http://localhost:9090/metrics
error log curl: (7) Failed to connect to localhost port 9090 after 4 ms: Connection refused
coordinator config
"coordinator":{
"endpoint":null,
"service_port":63800,
"monitor":true,
"monitor_port":9090,
"deployment_name":null,
"node_selector":null,
"resource":{
"requests":{
"cpu":0.5,
"memory":"512Mi"
},
"limits":null
},
"operator_mode":false
},
Sorry, please wait a moment and I'll have a try with that.
with this PR i can't find the coordinator monitor.tartServer in the master branch
after fix curl http://localhost:9090/metrics
result
# HELP session_state The session's state: 1 stands for connected or 0 stands for closed
# TYPE session_state gauge
session_state 1.0
# HELP analytical_request_total Count requests of analytical requests
# TYPE analytical_request_total counter
analytical_request_total 1.0
# HELP analytical_request_created Count requests of analytical requests
# TYPE analytical_request_created gauge
analytical_request_created 1.7023624177342794e+09
# HELP interactive_request_total Count requests of interactive requests
# TYPE interactive_request_total counter
interactive_request_total 0.0
# HELP interactive_request_created Count requests of interactive requests
# TYPE interactive_request_created gauge
interactive_request_created 1.7023624177342966e+09
# HELP interactive_request_time The interactive operation task time
# TYPE interactive_request_time gauge
# HELP analytical_request_time The analytical operation task time
# TYPE analytical_request_time gauge
analytical_request_time{op_name="GET_ENGINE_CONFIG"} 0.018267679999553366 1702362431023
want to set coordinator config
"monitor":true, "monitor_port":9090
log
Environment (please complete the following information):