/
githubmirror
/
ceph
Обзор
Документация
Войти
/
githubmirror
/
ceph
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/mgr/cli_api.rst
62 строки
1 KB
Nitzan Mordechai
mgr: replace TTLCache with MgrMapCache and protect api with readonly
03 июн 2026, 12:13
03 июн 2026, 12:13
403340b
Код
Авторство
О чём код?
CLI API Commands Module ======================= The CLI API module exposes most of the ceph-mgr Python API via CLI commands. This API can be benchmarked. Enabling -------- Enable the ``cli api`` module by running the following command: .. prompt:: bash # ceph mgr module enable cli_api Ensure that the ``cli api`` module is enabled by running the following command: .. prompt:: bash # ceph mgr module ls | grep cli_api Usage -------- This the the general form of Manager CLI commands: .. prompt:: bash # ceph mgr cli <command> <param> Print the list of servers by running the following command: .. prompt:: bash # ceph mgr cli list_servers List all available Manager module commands by running the following command: .. prompt:: bash # ceph mgr cli --help Benchmark a command, by running a command of the following form: .. prompt:: bash # ceph mgr cli_benchmark <number of calls> <number of threads> <command> <param> For example, run the following command to benchmark the command to get ``osd_map``: .. prompt:: bash # ceph mgr cli_benchmark 100 10 get osd_map Flush the saved cache map for the Ceph Manager CLI. Use this command to refresh the cache and ensure the most up-to-date information is used: .. prompt:: bash # ceph mgr cli cache flush <map-name>