" /> configuring redundant cfg dbservers - Genesys CTI User Forum

Author Topic: configuring redundant cfg dbservers  (Read 38069 times)

Williams

  • Guest
Re: configuring redundant cfg dbservers
« Reply #15 on: January 08, 2008, 10:15:27 PM »
Advertisement
Absolutely....I noticed that. Question, in your dbserver.cfg for the backup....if you open the file, the very first line is[dbserver]. Is this what you have for your backup...or did you change the name to what your configure the backup app template to be?...for example cfg_dbserver_b

thanks

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: configuring redundant cfg dbservers
« Reply #16 on: January 08, 2008, 10:25:25 PM »
to Sylvainsjc: It isn't necessary to use the option "-c" as long as the name of the file is "dbserver.cfg".

to Williams:
The name of main section in the config file "dbserver" has to be "dbserver".

Do you have installed and running Solution Control Server? SCS is "manager" of the redundancy so it won't work without it.

R.

Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: configuring redundant cfg dbservers
« Reply #17 on: January 08, 2008, 10:31:08 PM »
See Attached snapshoots for cfg dbserver and configserver (primary and backup)


Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: configuring redundant cfg dbservers
« Reply #18 on: January 08, 2008, 10:33:54 PM »
I Agree with René - without lca and SCS running (and HA license...) : redundancy won't work

Offline catanirex

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 11
Re: configuring redundant cfg dbservers
« Reply #19 on: January 09, 2008, 07:26:03 AM »
Hi,

For a confserver dbserver you chould use -cfg option.

Cut from support site:

-c
DB Server reads its configuration settings from a configuration file with the specified name.
If this parameter is set, its value overrides the default name of the configuration file (dbserver.conf on Unix or dbserver.cfg on Windows).
-cfg
DB Server for the Configuration Database starts with an application name other that cfg_dbserver, but still reads its configuration from a configuration file. When this parameter is specified, the Management Layer can restart DB Server that is configured as an application even when Configuration Server is not available. Use this parameter for starting a backup DB Server for the Configuration Database. This parameter does not require any value.

Williams

  • Guest
Re: configuring redundant cfg dbservers
« Reply #20 on: January 09, 2008, 03:49:15 PM »
Hi All,
Renee or someone....can you call me at 704-943-8269. Getting to be a pain. I totally understanding what the recommendations have been....and I have made them...and getting the same thing.

Pretty sure you don't need HA license to run cfg db server in HA mode. SCS and LCA are both running.

I put the -cfg in all places for the backup cfg db server(i.e app template, startserver.bat file and Image path. Far as I can see, all looks well.

Renee- Do I need the -cfg in the Image path for the primary dbserver??

Here is what I saw in the logs after making the above changes:

07:29:12.611 Trc 06084 Configuration option set: 'lca':'lcaport' = '4999'
Open LCALayer on port=4999
LCA Library version 7.5.000.05
07:29:12.611 Std 05060 Application started
Open server port: = (
  "name" = "dbserver"
  "server-type" = "46"
  "port" = "4040"
)
07:29:13.814 Std 04525 Port 4040 opened for listening
************************************
LCALayer: REventRegistered on LCA...
************************************
LCALayer: DBID changed from 0 to 255
Windowns NT service stopped
Listener (port id = dbserver fd = 260) is being closed. Checking for clients on listener...
Listener with port id = dbserver has been closed and deleted from list of current ports. Number of db app connections affected: 0
07:31:19.880 Std 01000 DbServer Exiting
  /Process manager statistics
    name                      = ProcessStatistics
    error_start_count        = 0
    successfully_start_count  = 0
    error_stop_count          = 0
    successfully_stop_count  = 0
    unexpected_terminated    = 0
    time_expired_count        = 0
GServer (0xa258c4) is being removed. numofclients = 0,current numofserveritems = 0
07:31:19.880 Trc 04109 Logging service stopped

I must be still missing something.  thanks

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: configuring redundant cfg dbservers
« Reply #21 on: January 09, 2008, 04:52:33 PM »
Williams,

-cfg option is not needed for primary confserv.
I can see a "Windowns NT service stopped" ; is the image path correct?

Williams

  • Guest
Re: configuring redundant cfg dbservers
« Reply #22 on: January 09, 2008, 05:15:22 PM »
below is my image path:

"C:\GCTI\DBServer\cfg_dbserver_b\multiserver.exe" -service DBServer -host ccagenlab0302 -port 2020 -app cfg_dbserver_b -cfg

Below is my startserver.bat

@echo off

rem --------------------------------------------------------------------------------------
rem Copyright (C) 2007 Genesys Telecommunications Laboratories, Inc.
rem
rem startServer.bat file for DB Server, version 7.5.000.07
rem --------------------------------------------------------------------------------------

@TITLE DB Server v. 7.5.000.07 cfg_dbserver
multiserver.exe -host ccagenlab0302 -port 2020 -app cfg_dbserver_b -cfg



Offline Sylvainsjc

  • Full Member
  • ***
  • Posts: 137
  • Karma: 2
Re: configuring redundant cfg dbservers
« Reply #23 on: January 09, 2008, 05:17:58 PM »
[color=blue][b]SURE YOU NEED the license ha_redundancy.

Without, you'll see in SCI the application in "BACKUP" status mode but try to kill the primary application, the status of the backup application won't get "PRIMARY"...[/b][/color]

Williams

  • Guest
Re: configuring redundant cfg dbservers
« Reply #24 on: January 09, 2008, 06:30:37 PM »
I'm covered. I do have the ha_redunancy license feature in my license file.

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: configuring redundant cfg dbservers
« Reply #25 on: January 09, 2008, 07:51:15 PM »
Ok, while I am researching HA standby for cfg_dbserver, here are some basic things:

-  there is no need to for your cfg_dbserver to be in BACKUP mode.
-  there is a section called [dbserver] in your confserv.conf file that defines your PRIMARY dbserver. inside that section, toward the end, you have "server = " option where you define your backup dbserver you want you config server to switch to, should first go down.  create [dbserver_backup] section right after the last line of [dbserver] section and fill out information on your backup dbserver

I would suggest for your backup configserver to use [dbserver_backup] section as primary access point with [dbserver] as your backup. Of course, this depends on your system layout, but still...

I will try to do some tests with HA dbserver setup, but I do not see the point of having DBSERVER in backup mode. Especially "HA" - it just does not make much sense, since unlike TServer there is nothing to synchronize. DBserver is just a mean of accessing DB.

Oh, yeah, important thing: make sure you have [lca] section in your dbserver.conf file, something like this:

[lca]
lcaport=4999

this actually tells your cfg_dbserver to connect to LCA. :)

As I was looking through the log you have posted, you have this:

Listener (port id = dbserver fd = 232) is being closed. Checking for clients on listener...
Listener with port id = dbserver has been closed and deleted from list of current ports. Number of db app connections affected: 0
21:41:42.171 Std 04560 Warm Standby (backup) mode activated

Looks weird to me. :)

First of all: if you have startServer.bat, why would you not just call it from Path? You do not to specify anything other than that!

In your startServer.bat add "-service DBServer" for your primary DBSErver and "-service DBServer_b" (or whatever the name of your backup DBServer service is for backup server.

You do not need -cfg if the name of your dbserver is cfg_dbserver, BUT you will need it for cfg_dbserver_b. (Genesys knows that dbserver's name if cfg_dbserver, it means it is db server for config server and it needs to read dbserver.cfg file to get all the info.)

For your cfg_dbserver_b, I strongly suggest adding -c inside your batch file and specifying the name of your cfg_dbserver_b's config file just to avoid any potential screw ups in a future. (you DID replace Path Info in CME cfg_dbserver with the path to you batch file, right?)
Vic
« Last Edit: January 09, 2008, 08:23:24 PM by victor »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: configuring redundant cfg dbservers
« Reply #26 on: January 09, 2008, 08:05:44 PM »
Hi guys,
If I have a HA license, I can have a standby server for each server? TServer? OCS? StatServer? Or do I need a license for each of them?

Marked as best answer by on Today at 06:49:45 PM

Offline Daimonas

  • Full Member
  • ***
  • Posts: 106
  • Karma: 2
  • There's a fish in every bowl.
Re: configuring redundant cfg dbservers
« Reply #27 on: January 09, 2008, 08:17:28 PM »
  • Undo Best Answer
  • Here is a listing of the HA licenses, they are specific to the product for most cases:

    vendor_info="v7.1- HA - Enterprise Routing"
    vendor_info="v7.0 - HA - Call Concentrator"
    FEATURE ha_redundancy
    FEATURE cti_ha_option

    There are some other ones (and newer ones), like for Config server. Currently I have a config proxy license that allows me to use Proxy servers.

    For OCS, you may have one or both of the following:
    FEATURE ocs
    FEATURE occ_full

    Offline René

    • Administrator
    • Hero Member
    • *****
    • Posts: 1832
    • Karma: 62
    Re: configuring redundant cfg dbservers
    « Reply #28 on: January 09, 2008, 08:21:12 PM »
    Williams - Could you post here your dbserver.cfg files?

    Cavagnaro - There are several license related to HA. The license key we're talking about is "HA_redundancy". That key "allows" SCS to automatically do switchover when primary app fails. The other keys are "cti_ha_option" for TServer and "router_ha_option" for URS.

    R.

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: configuring redundant cfg dbservers
    « Reply #29 on: January 09, 2008, 08:49:20 PM »
    Hi René,
    Thanks for the answer. I do have:

    FEATURE ha_redundancy genesys.d 7.0 1-jan-00 999999 15F1D9CE4DEB \
    FEATURE router_ha_option genesys.d 7.0 1-jan-00 999999 5254BBAB01BD \
    FEATURE cti_ha_option genesys.d 7.0 1-jan-00 999999 74A7E2E2FF35 \

    So i can do all the HA right?

    What I do have for OCS is:

    FEATURE occ_full genesys.d 7.0 1-jan-00 154 1A98D4683A5B

    Does this allow me to have a backup OCS?