Compile and deploy

Compile

The build.sh script directly under the manager path

  1. cd incubator-doris-manager
  2. sh build.sh

After the compilation is completed, the output directory of the installation package will be generated under the manager path. The directory structure is as follows

  1. ├── agent //agent directory
  2. ├── bin
  3. ├── agent_start.sh
  4. ├── agent_stop.sh
  5. └── download_doris.sh
  6. ├── config
  7. └── application.properties
  8. └── lib
  9. └── dm-agent.jar
  10. └── server //server directory
  11. ├── bin
  12. ├── start_manager.sh //Doris Manager startup script
  13. └── stop_manager.sh //Doris Manager stop script
  14. ├── conf
  15. └── manager.conf //Doris Manager configuration file
  16. ├── lib
  17. └── doris-manager.jar //Doris Manager's running package doris-manager.jar
  18. └── web-resource

Run

1 Configuration

Modify the configuration file server/conf/manager.conf, and focus on the following configuration items:

  1. The service's startup http port
  2. STUDIO_PORT=8080
  3. The type of database where the backend data is stored, including mysql/h2/postgresql. The default is to support mysql
  4. MB_DB_TYPE=mysql
  5. Database connection information
  6. If it is a configured h2 type database, you do not need to configure this information, and the data will be stored locally as a local file
  7. h2 data file storage path, directly stored in the current path by default
  8. H2_FILE_PATH=
  9. If it is mysql/postgresql, you need to configure the following connection information
  10. database address
  11. MB_DB_HOST=
  12. database port
  13. MB_DB_PORT=3306
  14. database access port
  15. MB_DB_USER=
  16. Database access password
  17. MB_DB_PASS=
  18. database name of the database
  19. MB_DB_DBNAME=
  20. The path where the service runs, which is directly stored in the log folder of the current running path by default.
  21. LOG_PATH=
  22. The length of the waiting queue of the web container, the default is 100. The queue is also used as a buffer pool, but it cannot be infinitely long. It not only consumes memory, but also consumes CPU when entering the queue.
  23. WEB_ACCEPT_COUNT=100
  24. The maximum number of worker threads for the web container, 200 by default. (usually the number of CPU cores * 200)
  25. WEB_MAX_THREADS=200
  26. The minimum number of working idle threads for the web container, the default is 10. (Appropriately increase some to cope with the sudden increase in traffic)
  27. WEB_MIN_SPARE_THREADS=10
  28. The maximum number of connections for the web container, the default is 10000. (Appropriately increase some to cope with the sudden increase in traffic)
  29. WEB_MAX_CONNECTIONS=10000
  30. The maximum number of connections to access the database connection pool, the default is 10
  31. DB_MAX_POOL_SIZE=20
  32. The minimum number of idle connections to access the database connection pool, the default is 10
  33. DB_MIN_IDLE=10

2 Start

After the configuration modification is completed, start doris manger

  1. cd server
  2. sh bin/start_manager.sh

Check the logs in the logs to determine whether the program started successfully

3 Use

Doris Manager presets a super administrator user with the following information:

  1. Username: Admin
  2. Password: Admin@123

To ensure safe use, please change your password after logging in!