forked from apache/cloudberry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpinitsystem.conf
More file actions
89 lines (75 loc) · 4.07 KB
/
gpinitsystem.conf
File metadata and controls
89 lines (75 loc) · 4.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# --------------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to You under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# gpinitsystem Configuration File for Apache Cloudberry
# --------------------------------------------------------------------
# This configuration file is used to initialize an Apache Cloudberry
# cluster. It defines the settings for the coordinator, primary segments,
# and mirrors, as well as other important configuration options.
# --------------------------------------------------------------------
# Segment prefix - This prefix is used for naming the segment directories.
# For example, the primary segment directories will be named gpseg0, gpseg1, etc.
SEG_PREFIX=gpseg
# Coordinator port - The port number where the coordinator will listen.
# This is the port used by clients to connect to the database.
COORDINATOR_PORT=5432
# Coordinator hostname - The hostname of the machine where the coordinator
# will be running. The $(hostname) command will automatically insert the
# hostname of the current machine.
COORDINATOR_HOSTNAME=$(hostname)
# Coordinator data directory - The directory where the coordinator's data
# will be stored. This directory should have enough space to store metadata
# and system catalogs.
COORDINATOR_DIRECTORY=/data1/coordinator
# Base port for primary segments - The starting port number for the primary
# segments. Each primary segment will use a unique port number starting from
# this base.
PORT_BASE=6000
# Primary segment data directories - An array specifying the directories where
# the primary segment data will be stored. Each directory corresponds to a
# primary segment. In this case, two primary segments will be created in the
# same directory.
declare -a DATA_DIRECTORY=(/data1/primary /data1/primary)
# Base port for mirror segments - The starting port number for the mirror
# segments. Each mirror segment will use a unique port number starting from
# this base.
MIRROR_PORT_BASE=7000
# Mirror segment data directories - An array specifying the directories where
# the mirror segment data will be stored. Each directory corresponds to a
# mirror segment. In this case, two mirror segments will be created in the
# same directory.
declare -a MIRROR_DATA_DIRECTORY=(/data1/mirror /data1/mirror)
# Trusted shell - The shell program used for remote execution. Cloudberry uses
# SSH to run commands on other machines in the cluster. 'ssh' is the default.
TRUSTED_SHELL=ssh
# Database encoding - The character set encoding to be used by the database.
# 'UNICODE' is a common choice, especially for internationalization.
ENCODING=UNICODE
# Default database name - The name of the default database to be created during
# initialization. This is also the default database that the gpadmin user will
# connect to.
DATABASE_NAME=gpadmin
# Machine list file - A file containing the list of hostnames where the primary
# segments will be created. Each line in the file represents a different machine.
# This file is critical for setting up the cluster across multiple nodes.
MACHINE_LIST_FILE=/home/gpadmin/hostfile_gpinitsystem
# --------------------------------------------------------------------
# End of gpinitsystem Configuration File
# --------------------------------------------------------------------