운영관리

각 데이터베이스에 개별적 파라미터 적용하는 방법

by 정만영 posted Nov 30, 2009

큐브리드는 한 개의 서버에서 여러 개의 데이터베이스를 사용할 수 있는데, 서버 자원(resource) 부족할 경우 업무 사용량에 따라 각 데이터베이스 서버의 환경설정을 개별적으로 적용할 수 있다,

cubrid.conf에 지정된 파라미터는 다음과 같이 세 가지 섹션으로 제공된다.

- CUBRID 서비스를 시작할 때 사용 : [service] 섹션

- 전체 데이터베이스에 공통으로 적용 : [common] 섹션

- 각 데이터베이스에 개별적으로 적용 : [@<database>] 섹션

여기서 [@<database>] 섹션을 $CUBRID/cubrid.conf 마지막 라인에 데이터베이스 이름과 대상 파라미터를 입력하여 개별적으로 적용하는데 아래 예제와 같이 적용한다.

# Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.

# cubrid.conf

:

# Service section - a section for 'cubrid service' command
[service]

# The list of processes to be started automatically by 'cubrid service start' command
# Any combinations are available with server, broker and manager.
service=server,broker,manager

# The list of database servers in all by 'cubrid service start' command.
# This property is effective only when the above 'service' property contains 'server' keyword.
server=testdb,demodb

# Common section - properties for all databases
# This section will be applied before other database specific sections.
[common]

# Number of data buffer pages
# data_buffer_pages (25,000 pages) * DB page size (4KB) = 100M
data_buffer_pages=25000

# Number of sort buffer pages
# sort_buffer_pages (16 pages) * DB page size (4KB) * number of threads
sort_buffer_pages=32

# Number of log buffer pages.
# log_buffer_pages (50 pages) * DB page size (4KB) = 200KB
log_buffer_pages=50

:

:

중간 생략

:

# Enable Java Stored Procedure

java_stored_procedure=no

#error_log_production_mode=0

#call_stack_dump_on_error=1

[@testdb]    // testdb 데이터베이스에 개별적으로 적용

data_buffer_pages=100000

temp_file_max_size_in_pages=250000

media_failure_support=yes

replication=yes

max_clients=260

[@demodb]   // demodb 데이터베이스에 개별적으로 적용

data_buffer_pages=25000

temp_file_max_size_in_pages=100000

media_failure_support=no

replication=no

max_clients=100


Articles

4 5 6 7 8 9 10 11 12 13