Opened 6 months ago

Last modified 3 months ago

#1484 assigned defect

custom rasmgr port in start/

Reported by: dmisev Owned by: dmisev
Priority: major Milestone: 9.4
Component: bin Version: development
Keywords: Cc: pbaumann
Complexity: Medium


rasmgr and rascontrol calls in and should use a --port $PORT variable set at the beginning of the script (to 7001 by default). It's annoying and error-prone to manually search where the port needs to be changed in these scripts.

Perhaps an even better solution is for this parameter to be specified in rasmgr.conf

Change History (8)

comment:1 Changed 6 months ago by bphamhuu

  • Owner changed from bphamhuu to dmisev
  • Status changed from new to assigned

comment:2 Changed 6 months ago by pbaumann

there as an idea of putting the port into rasmgr.conf - I like this approach because it concentrates information: rasserver ports are in rasmgr.conf already, too.

comment:3 Changed 3 months ago by dmisev

Should it be part of the define dbh command, e.g. option -port 7001 or so?

# 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 -port 7001

comment:4 Changed 3 months ago by pbaumann

in rasmgr/ I find:

"define db 'dbname' -dbh 'dbhname'\r\n"
"       - define database 'dbname' on database host 'dbhname'\r\n"
"         ('dbname' is not a symbolic name, it is the real name of the rasdaman database
"define host 'hostname' -net 'netaddress' [-port 'portnumber']\r\n"
"       - define server host with symbolic name 'hostname', located at address 'netaddress:portnumber'\r\n"
"         ('portnumber' defaults to 7001)\r\n" done?

comment:5 Changed 3 months ago by dmisev

Perfect :)

But we are not done, we should put -port 7001 by default in rasmgr.conf and remove the specific port used in This would mean upgrading rasmgr.conf somehow during install, which is hard and dangerous. We can either decide it's wontfix or try to devise some hazardous script for upgrading rasmgr.conf

comment:6 Changed 3 months ago by pbaumann

not sure it's worth the effort. We might just setup a how-to for portchanging which points to the places to be changed. It's just 2 I understand: and rasmgr.conf.

comment:7 Changed 3 months ago by dmisev

Actually I think we can safely remove it from start/ - they have 7001 as default anyway. Then if someone wants a different port, they can adapt rasmgr.conf

comment:8 Changed 3 months ago by pbaumann

sounds good, and as this script should not be updated by users anyway it is safer to replace/modify it during update.

Note: See TracTickets for help on using tickets.