Skip to content
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: add more info in status api #1340

Merged
merged 2 commits into from Feb 2, 2024
Merged

feat: add more info in status api #1340

merged 2 commits into from Feb 2, 2024

Conversation

annielz
Copy link
Collaborator

@annielz annielz commented Feb 1, 2024

Description

Add more (executor, manager, gc) information in status api, to distinguish configs of different SPs.

Rationale

N/A

Example

curl localhost:9133/status
{
"status": {
"storage_provider_info": {
"sp_code_version": "",
"sp_code_commit": "",
"sp_architecture": "arm64",
"sp_go_version": "go1.20.1",
"sp_operating_system": "darwin",
"sp_operator_address": "",
"sp_domain_name": "localhost:9133"
},
"block_syncer_info": {
"bs_block_height": "26974",
"bs_block_hash": "0x13543eb8f6b947dfe85b5cd28cfafbbe6530b49c087603b9c1aa1a8f68eb75cb",
"bs_update_time": "1697460884",
"bs_mysql_version": "8.0.33",
"bs_default_character_set_name": "utf8mb4",
"bs_default_collation_name": "utf8mb4_0900_ai_ci",
"bs_modules": [
"epoch",
"bucket",
"object",
"payment",
"group",
"permission",
"storage_provider",
"prefix_tree",
"object_id_map",
"global_virtual_group",
"global_virtual_group_family",
"local_virtual_group",
"bucket_migration",
"bucket_migration_complete"
],
"bs_workers": 10,
"bs_enable_dual_db": false
},
"chain_info": {
"chain_id": "greenfield_9000-1741",
"chain_address": [
"http://localhost:26750"
]
},
"manager_info": {
"enable_load_task": true,
"enable_health_checker": true,
"enable_task_retry_scheduler": false
},
"executor_info": {
"listen_seal_retry_timeout": "10",
"bucket_traffic_keep_time_day": "180",
"read_record_keep_time_day": "180"
},
"gc_info": {
"enable_gc_zombie": true,
"enable_gc_meta": true,
"gc_meta_time_interval": "86400"
}
}
}

Changes

Notable changes:

  • add executor, manager, gc information in status api

Potential Impacts

  • status api

@annielz annielz merged commit 36880eb into develop Feb 2, 2024
12 checks passed
@annielz annielz deleted the feat-add-info-in-status branch February 2, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants