본문으로 건너뛰기

4.3. Data service broker 설정

본 장에서는 data service broker 어플리케이션이 사용하는 설정 파일(.yml)의 설정 값을 설명합니다.

Property명설명Value Example
server.portDataServiceBroker WAS Port8082
server.timezone데이터 적재 시 사용될 timezoneAsia/Seoul
logging.configlogback 설정 파일 경로classpath:logback-spring.xml
logging.base.dirlog 저장 기본 디렉토리logs
datasource.driverClassNameJDBC 드라이버org.postgresql.Driver
datasource.urlJDBC 접속 주소jdbc:postgresql://10.0.0.16:5432/datacore_v2
datasource.usernameJDBC 연결 사용자명datacore
datasource.passwordJDBC 연결 패스워드datacore
datasource.secondary.use.ynRDBMS Read 성능 향상을 위해 Read 전용 연결을 사용할 지 여부 (DBMS구성 시 Replication 기반 Read 성능 확보 환경 구성 필요)
- N : 미적용
- Y : 적용
N
datasource.secondary.driverClassName조회 전용 JDBC 드라이버org.postgresql.Driver
datasource.secondary.url조회 전용 JDBC 접속 주소jdbc:postgresql://10.0.0.16:5432/datacore_v2
datasource.secondary.username조회 전용 JDBC 연결 사용자명datacore
datasource.secondary.password조회 전용 JDBC 연결 패스워드datacore
hive.use.ynHive 연결 사용 여부N
hive.driverClassNameHive 연결 드라이버org.apache.hive.jdbc.HiveDriver
hive.urlHive 연결 주소jdbc:hive2://10.0.0.81:10187/default
hive.usernameHive 연결 아이디hive
hive.passwordHive 연결 패스워드hive
hive.baseDirPathHive 적재 기본 디렉토리/user/hive/warehouse
hbase.xmlPathHBase 연결 정보 파일hbase-site.xml
bulk.processor.thread.count데이터 적재 처리 쓰레드 수10
bulk.queue.size데이터 적재 처리 쓰레드로 데이터를 전송할 메모리 Queue크기10000
bulk.interval.millis데이터 적재 쓰레드가 Queue에서 데이터를 꺼내는 주기 (묶음처리)100
kafka.urlKafka 연결 주소k1:9092,k2:9092,k3:9092
kafka.message.versionKafka 메시지 버전1.0
kafka.security.ynkafka 보안 적용 여부
- N : 미적용
- Y : 적용
N
kafka.security.protocolkafka 보안 프로토콜SASL_PLAINTEXT
kafka.sasl.mechanismkafka 보안 메커니즘PLAIN
kafka.usernamekafka 사용자명test
kafka.passwordkafka 패스워드test
kafka.ingest.request.consumer.threadcountkafka 인터페이스 컨슈머 쓰레드 수1
kafka.ingest.request.consumer.group.idkafka 컨슈머 그룹 아이디ketiConsumer
kafka.ingest.request.consumer.enable.auto.commitkafka auto commit 사용 여부true
kafka.ingest.request.consumer.auto.offset.reset.configkafka offset 관리 옵션latest
kafka.ingest.request.consumer.poll.duration.milliskafka polling duration 주기1000
notification.processor.thread.countNotification 발송 처리 Thread 수10
notification.queue.sizeNotification 발송 처리 Thread Queue 크기100000
datacore.data.life.cycle.cron데이터 라이프 사이클 관리 스케줄0 0 2 * * *
datacore.http.binding.response.log.ynHTTP response INFO 로그 출력 여부N
datacore.http.binding.cause.msg.trace.keyHTTP 요청 에러 시 에러메시지 반환 옵션 Header Key 설정x-detail-error-key
datacore.http.binding.cause.msg.trace.valueHTTP 요청 에러 시 에러 리턴 depth level 설정BBBBB
datacore.http.binding.cause.msg.levelHTTP요청 에러 시 표기할 오류 레벨3
eureka.instance.prefer-ip-address서비스간 통신 시 hostname 보다 ip 를 우선 사용 함
- true: IP 우선 사용
- false: hostname 우선 사용
true
eureka.client.enabled유레카 클라이언트 사용 여부
- true: 유레카 클라이언트 사용
- false: 유레카 클라이언트 사용 안함
false
eureka.client.register-with-eurka자기자신을 서비스로 등록하지 않기 위한 옵션true
eureka.client.fetch-registry마이크로서비스인스턴스 목록의 로컬 캐시 여부
- true: 로컬 캐쉬 함
- false: 로컬 캐쉬 안함
true
eureka.client.service-url.defaultZoneDiscovery server에 대한 접속 정보http://10.0.0.81:8888/eureka, http://10.0.0.82:8888/eureka, http://10.0.0.83:8888/eureka
entity.default.storagedatasetFlow 정보가 없는 요청의 경우 Entity 적재/조회 시 기본 저장소
- rdb
- hive
- hbase
rdb
entity.default.history.store.typedatasetFlow 정보가 없는 요청의 경우 Entity 이력 저장 유형
- none : 이력 저장 안함
- partial : partial 이력만 저장
- full : full 이력만 저장
- all : partial, full 이력 모두 저장
all
entity.retrieve.default.limitEntity 조회 시 기본 limit 값10000
entity.retrieve.include.datasetidEntity 조회 시 데이터 셋 아이디 포함여부N
entity.history.retrive.full.yn이력 조회시 full이력 조회 여부, N일 경우 partial이력 조회Y
entity.history.delete.ynEntity 삭제 시 이력까지 삭제할 지 여부Y
geometry.default.attributeEntity 조회 시 Default location attribute 명location
geometry.default.EPSGEntity 조회 시 Default location의 EPSG 유형
- 4326 (Default)
- 3857
4326
notification.change.event.use.yn엔티티 변경 이벤트 시 HTTP Notification 발송 사용 여부Y
notification.time.interval.use.yn스케줄 기반 HTTP Notification 발송 기능 사용 여부N
notification.processor.thread.countNotification 발송 쓰레드 수10
notification.queue.size비동기 Notification 처리 Queue 크기10000
notification.batch.interval.millisNotification 스케줄러 동작 주기10000
notification.batch.init.delay서버 기동 후 Notification 스케줄러 최초 동작 딜레이 시간30000
http.pool.max.totalhttp 커넥션 풀 최대 크기200
http.pool.defaultMaxPerRoutehost 당 커넥션 풀에 생성가능한 Connection 수100
http.pool.connection.timeouthttp 클라이언트 연결타임아웃5000
http.pool.connection.request.timeouthttp 클라이언트 요청 타임아웃5000
http.pool.read.timeouthttp 클라이언트 READ 타임아웃10000
http.pool.validate.after.inactivityhttp 클라이언트 validate after inactivity2000
security.acl.useYn접근제어 사용 여부Y
security.publicKey접근제어 공개 키-----BEGIN PUBLIC KEY-----
중략
-----END PUBLIC KEY-----
security.headers.admin.key접근제어 admin 헤더 key 값x-user-role
security.headers.admin.value접근제어 admin 헤더 value 값ADMIN
service-execution.executor.thread-countService Execution Proxy Thread 수10
service-execution.executor.queue-sizeService Execution Proxy Queue 크기10000