Opened 7 years ago

Closed 5 years ago

#44 closed enhancement (worksforme)

Rasdaman Conf.

Reported by: s.juba@… Owned by: dmisev
Priority: trivial Milestone:
Component: applications Version: 8.1
Keywords: Cc: p.baumann@…


The rasdaman configuration are defined in different places and using different styles and it is very difficult to trace these configurations. For examples, the globals.hh file define many external variables that control the behavior of rasdaman. Another place of configuration is rasmgr.conf. In these two places one can observe that there are redundancy in the definitions. Another place where one can find general definitions of configuration is inline the source code. for example repeats the same definition in glabals.hh and rasmgr.conf

Please see below
#define PARAM_SERV_FLAG 's'
#define PARAM_SERV "server"
#define HELP_SERV "<host-name> rasdaman server"
#define DEFAULT_SERV "localhost"

#define PARAM_PORT_FLAG 'p'
#define PARAM_PORT "port"
#define HELP_PORT "<p> rasmgr port number"
#define DEFAULT_PORT 7001
#define DEFAULT_PORT_STR "7001"


const char *serverName = DEFAULT_SERV;
r_ULong serverPort = DEFAULT_PORT;
const char *baseName = DEFAULT_DB;

const char *user = DEFAULT_USER;
const char *passwd = DEFAULT_PASSWD;


/ default rasmgr listen port
#define DEFAULT_PORT 7001

/ name of env var pointing to rasdaman home dir (ex: "/opt/rasdaman")

/ default name of server machine, if gethostname() fails
#define DEFAULT_HOSTNAME "localhost"

/ default database name


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

Change History (2)

comment:1 Changed 6 years ago by dmisev

  • Owner set to dmisev
  • Status changed from new to accepted

comment:2 Changed 5 years ago by pbaumann

  • Priority changed from major to trivial
  • Resolution set to worksforme
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.