获取帮助

启动调优程序之前,可以通过如下命令获取帮助信息:

  1. python main.py --help

输出帮助信息结果如下:

  1. usage: main.py [-h] [-m {train,tune}] [-f CONFIG_FILE] [--db-name DB_NAME]
  2. [--db-user DB_USER] [--port PORT] [--host HOST]
  3. [--host-user HOST_USER] [--host-ssh-port HOST_SSH_PORT]
  4. [--scenario {ap,tp,htap}] [--benchmark BENCHMARK]
  5. [--model-path MODEL_PATH] [-v]
  6. X-Tuner: a self-tuning toolkit for OpenGauss.
  7. optional arguments:
  8. -h, --help show this help message and exit
  9. -m {train,tune}, --mode {train,tune}
  10. train a reinforcement learning model or tune by your
  11. trained model.
  12. -f CONFIG_FILE, --config-file CONFIG_FILE
  13. you can pass a config file path or you should manually
  14. set database information.
  15. --db-name DB_NAME database name.
  16. --db-user DB_USER database user name.
  17. --port PORT database connection port.
  18. --host HOST where did your database install on?
  19. --host-user HOST_USER
  20. user name of the host where your database installed
  21. on.
  22. --host-ssh-port HOST_SSH_PORT
  23. host ssh port.
  24. --scenario {ap,tp,htap}
  25. --benchmark BENCHMARK
  26. --model-path MODEL_PATH
  27. the place where you want to save model weights to or
  28. load model weights from.
  29. -v, --version
  30. show version.