Skip to main content

Compile and deploy

Compile and deploy

Compile

The build.sh script directly under the manager path

cd incubator-doris-manager
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

├── agent //agent directory
│ ├── bin
│ │ ├── agent_start.sh
│ │ ├── agent_stop.sh
│ │ └── download_doris.sh
│ ├── config
│ │ └── application.properties
│ └── lib
│ └── dm-agent.jar
└── server //server directory
├── bin
│ ├── start_manager.sh //Doris Manager startup script
│ └── stop_manager.sh //Doris Manager stop script
├── conf
│ └── manager.conf //Doris Manager configuration file
├── lib
│ └── doris-manager.jar //Doris Manager's running package doris-manager.jar
└── web-resource

Run

1 Configuration

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

The service's startup http port
STUDIO_PORT=8080

The type of database where the backend data is stored, including mysql/h2/postgresql. The default is to support mysql
MB_DB_TYPE=mysql

Database connection information
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
h2 data file storage path, directly stored in the current path by default
H2_FILE_PATH=

If it is mysql/postgresql, you need to configure the following connection information
database address
MB_DB_HOST=

database port
MB_DB_PORT=3306

database access port
MB_DB_USER=

Database access password
MB_DB_PASS=

database name of the database
MB_DB_DBNAME=

The path where the service runs, which is directly stored in the log folder of the current running path by default.
LOG_PATH=

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.
WEB_ACCEPT_COUNT=100

The maximum number of worker threads for the web container, 200 by default. (usually the number of CPU cores * 200)
WEB_MAX_THREADS=200

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)
WEB_MIN_SPARE_THREADS=10

The maximum number of connections for the web container, the default is 10000. (Appropriately increase some to cope with the sudden increase in traffic)
WEB_MAX_CONNECTIONS=10000

The maximum number of connections to access the database connection pool, the default is 10
DB_MAX_POOL_SIZE=20

The minimum number of idle connections to access the database connection pool, the default is 10
DB_MIN_IDLE=10

2 Start

After the configuration modification is completed, start doris manger

cd server
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:

Username: Admin
Password: Admin@123

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