summaryrefslogtreecommitdiffstats
path: root/bin/rasmgr.conf.in
blob: 79da054a3eea960b6654644826d6b16f5fa14f64 (plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# This file is part of rasdaman community.
#
# Rasdaman community is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rasdaman community is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rasdaman community.  If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
# rasdaman GmbH.
#
# For more information please see <http://www.rasdaman.org>
# or contact Peter Baumann via <baumann@rasdaman.com>.      
#
# ----------------------------------------------------------------------------
#
# rasmgr.conf: rasmgr configuration file
#
# PURPOSE:
# define server processes for rasdaman;
# this configuration file is read by rasmgr upon system start;
# settings can be changed during runtime via rascontrol.
#
# COMMENTS:
# - do not edit while rasmgr is running, may be overwritten!
# - see Installation Guide for a complete list of options
#
# Copyright (c) 2005 rasdaman GmbH
#
# ----------------------------------------------------------------------------

# define symbolic name for database host
# the MYHOST name is just a symbolic one, does not have to correspond with
# any name outside rasdaman; however, MUST NOT BE EQUAL to any other name used
# in this file!
# parameters:
#	-connect c	server connect information (RDBMS login, database
#			name, or similar - depends on the base DBMS used;
#			eg, can be "/" for Oracle, "RASBASE" for PostgreSQL)
define dbh rasdaman_host -connect RASBASE

# define database
# parameters:
#	-dbh d		this database's server runs on host d
define db RASBASE -dbh rasdaman_host

# define a rasdaman database server process with name N1
# parameters:
#	-host h		name of the host machine the server runs on
#			(cf: man 1 hostname)
#	-type t		communication protocol type is t
#			(one of: 'r' for RPC, 'h' for HTTP, 'n' for RNP);
#			recommended: use 'n', all others are deprecated
# 	-port p		port number for contacting this server is p
#			(rasmgr by default uses 7001, so you may simply count up)
#	-dbh d		use database host d (see "define dbh" for allowed names)
define srv N1 -host @hostname@ -type n -port 7002 -dbh rasdaman_host

# change settings for this server
# parameters:
#	-countdown n	server will automatically restart after n requests
#			(beware of long-running transactions!)
#	-autorestart r	r is on or off; if on, automatically restart server
#			upon any termination (recommended: on)
#	-xp p		"extra parameters" passed to the rasserver binary as is
#			(see rasserver -h); all up to end of line, including
#			all whitespace, will be packed into p.
#			In particular (like in the example here) you can
#			provide a specific timeout in seconds determining
#			after how many seconds of inactivity the server will 
#			detach from the client, aborting any open transaction
change srv N1 -countdown 200 -autorestart on -xp --timeout 300

# more server definitions, following the above pattern; add any number you want.
# Parameters can be adjusted individually, but be sure to avoid a clash in the ports.
define srv N1 -host @hostname@ -type n -port 7003 -dbh rasdaman_host
change srv N1 -countdown 200 -autorestart on -xp --timeout 300

define srv N2 -host @hostname@ -type n -port 7004 -dbh rasdaman_host
change srv N2 -countdown 200 -autorestart on -xp --timeout 300

define srv N3 -host @hostname@ -type n -port 7005 -dbh rasdaman_host
change srv N3 -countdown 200 -autorestart on -xp --timeout 300

define srv N4 -host @hostname@ -type n -port 7006 -dbh rasdaman_host
change srv N4 -countdown 200 -autorestart on -xp --timeout 300

define srv N5 -host @hostname@ -type n -port 7007 -dbh rasdaman_host
change srv N5 -countdown 200 -autorestart on -xp --timeout 300

define srv N6 -host @hostname@ -type n -port 7008 -dbh rasdaman_host
change srv N6 -countdown 200 -autorestart on -xp --timeout 300

define srv N7 -host @hostname@ -type n -port 7009 -dbh rasdaman_host
change srv N7 -countdown 200 -autorestart on -xp --timeout 300

define srv N8 -host @hostname@ -type n -port 7010 -dbh rasdaman_host
change srv N8 -countdown 200 -autorestart on -xp --timeout 300

define srv N9 -host @hostname@ -type n -port 7011 -dbh rasdaman_host
change srv N9 -countdown 200 -autorestart on -xp --timeout 300

# further, we define one RPC type server; this protocol is deprecated,
# but rview still needs it.
define srv P1 -host @hostname@ -type n -port 0x29999901 -dbh rasdaman_host
change srv P1 -countdown 200 -autorestart on -xp --timeout 300

# end of rasmgr.conf