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
4. The type of database where the backend data is stored, including mysql/h2/postgresql. The default is to support mysql
5. MB_DB_TYPE=mysql
7. Database connection information
8. 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
9. h2 data file storage path, directly stored in the current path by default
10. H2_FILE_PATH=
12. If it is mysql/postgresql, you need to configure the following connection information
13. database address
14. MB_DB_HOST=
16. database port
17. MB_DB_PORT=3306
19. database access port
20. MB_DB_USER=
22. Database access password
23. MB_DB_PASS=
25. database name of the database
26. MB_DB_DBNAME=
28. The path where the service runs, which is directly stored in the log folder of the current running path by default.
29. LOG_PATH=
31. 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.
32. WEB_ACCEPT_COUNT=100
34. The maximum number of worker threads for the web container, 200 by default. (usually the number of CPU cores * 200)
35. WEB_MAX_THREADS=200
37. 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)
38. WEB_MIN_SPARE_THREADS=10
40. The maximum number of connections for the web container, the default is 10000. (Appropriately increase some to cope with the sudden increase in traffic)
41. WEB_MAX_CONNECTIONS=10000
43. The maximum number of connections to access the database connection pool, the default is 10
44. DB_MAX_POOL_SIZE=20
46. The minimum number of idle connections to access the database connection pool, the default is 10
47. 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!
