Configuration

Basic Configuration

  • application.properties
ParameterValueDefaultNotes
server.hostserver address127.0.0.1
server.portserver port8083
default.admin.userusenameadmin
default.admin.passwordpasswordinlong
server.servlet.context-pathcontext pathForm part of the url
spring.application.nameserver name
spring.profiles.activedev/prod/testdevUsed to differentiate between different environments
spring.mvc.pathmatch.matching-strategyANT_PATH_MATCHER/PATH_PATTERN_PARSERANT_PATH_MATCHERPath Matching Strategy of MVC
spring.jackson.serialization.write-dates-as-timestampstrue/falsetrueWhether to convert date to timestamp
spring.jackson.date-formatDate Formatyyyy-MM-dd HH:mm:ss
spring.jackson.time-zoneDefault Time ZoneGMT+8
mybatis.mapper-locationsPath of mapper fileclasspath:mappers/*.xml
mybatis.type-aliases-packagePath of entity classorg.apache.inlong.manager.dao.entity
mybatis.configuration.map-underscore-to-camel-casetrue/falsetrueWhether to map the underlined table field to the entity class attribute of hump type
pagehelper.helperDialectDatabase TypemysqlDatabase type used to specify paging
pagehelper.reasonabletrue/falsefalseWhether paging is reasonable
pagehelper.paramsSupported parameter configurationUsed to support parameter configuration, such as pagehelper. params=count=countSql
common.http-client.maxTotalTotal connections20Maximum number of connections in use at the same time
common.http-client.defaultMaxPerRouteThe maximum number of connections being used by the same host: port at the same time2The default number of connections per route, and the number of requests that a service can receive in parallel each time
common.http-client.validateAfterInactivityCheck time after inactive connectionWhen obtaining a connection from the connection pool, how long after the connection is inactive should it be verified
common.http-client.connectionTimeoutConnection establishment timeoutIn Milliseconds
common.http-client.readTimeoutData transmission timeoutIn Milliseconds
common.http-client.connectionRequestTimeoutGet connection timeoutIn Milliseconds
inlong.auth.typeCustom Authentication Configurationdefault
inlong.encrypt.versionEncrypted version1
inlong.encrypt.key.value1
openapi.auth.enabledtrue/falsefalseWhether to enable openApi authentication

Log Configuration

  • application-dev.properties, application-prod.properties, application-test.properties
ParameterValueDefaultNotes
logging.level.{effectivearea}info/warn/errorinfoeffective Area is the effective area at the log level. Root represents the entire project. It can also be set to a package name

Datasource Configuration

  • application-dev.properties, application-prod.properties, application-test.properties
ParameterValueDefaultNotes
spring.datasource.druid.urldatabase urljdbc:mysql://127.0.0.1:3306/apache_inlong_manager?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&serverTimezone=GMT%2b8
spring.datasource.druid.usernamedatabase usernameroot
spring.datasource.druid.passworddatabase passwordinlong
spring.datasource.druid.driver-class-namedatasource driver class namecom.mysql.cj.jdbc.Driver
spring.datasource.druid.validationQuerysql statementSELECT ‘x’Verify whether the database is available through the sql statement when the system starts
spring.datasource.druid.initialSizeInitialization size of database connection pool20
spring.datasource.druid.minIdleMinimum size of database connection pool20
spring.datasource.druid.maxActiveMaximum size of database connection pool300
spring.datasource.druid.maxWaitMaximum waiting time when getting a connection600000In milliseconds
spring.datasource.druid.minEvictableIdleTimeMillisThe maximum time that the connection remains idle without being evicted3600000In milliseconds
spring.datasource.druid.testWhileIdletrue/falsetrueWhether to enable idle connection detection for recycling
spring.datasource.druid.testOnBorrowtrue/falsefalseWhether to detect connection availability when obtaining connections from the connection pool. Enabling the connection will have a certain impact on performance
spring.datasource.druid.testOnReturntrue/falsefalseWhether the connection availability is detected when the connection is released to the connection pool. Enabling the connection will have a certain impact on the performance
spring.datasource.druid.filtersstat,wall,log4jstat,wallConfigure filters for monitoring statistics interception, stat:monitoring statistics, log4j:log, wall:defense against SQL injection
spring.datasource.druid.connectionPropertiesdatasource connection propertiesdruid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000Open the mergeSql function through the connectProperties property, Slow SQL records

Audit Configuration

  • application-dev.properties, application-prod.properties, application-test.properties
ParameterValueDefaultNotes
audit.query.sourceMYSQL/ELASTICSEARCH/CLICKHOUSEMYSQLAudit query source that decide what data source to query, currently only supports MYSQL, ELASTICSEARCH, CLICKHOUSE
es.index.search.hostnameElasticsearch hostname127.0.0.1Elasticsearch host split by coma if more than one host, such as ‘host1,host2’
es.index.search.portElasticsearch port9200
es.auth.enabletrue/falsefalseElasticsearch support authentication flag
es.auth.userElasticsearch user of authentication infoadmin
es.auth.passwordElasticsearch password of authentication infoinlong
audit.ck.jdbcUrlClickHouse jdbc urljdbc:clickhouse://127.0.0.1:8123/apache_inlong_audit
audit.ck.usernameClickHouse usenamedefault
audit.ck.passwordClickHouse password