Configuring an ObjectServer failover pair to support load balancing
Learn how to configure an ObjectServer failover pair to support Web GUI load balancing.
Web GUI load balancing can be supported by an ObjectServer failover pair. We suggest that a typical AGG layer is deployed. An existing AGG pair can be adopted, or a brand-new dedicated pair can also be deployed.
root
with password secret
are shown as an example. For your system, substitute these values with a valid user name and
password for your own system. To have all the necessary permissions for the ObjectServer, the user
should be a member of either the WebHA or System built-in groups.For more information about deploying an AGG layer failover pair, see Failover configuration.
- UNIX: $NCHOME/omnibus/extensions/webha
- WINDOWS: %NCHOME%\omnibus\extensions\webha
Extending the primary ObjectServer
- UNIX:
$NCHOME/omnibus/bin/nco_sql -server AGG_P -user root –password secret < $NCHOME/omnibus/extensions/webha/objectserver/webha.sql
- WINDOWS:
"%NCHOME%\omnibus\bin\isql" -S AGG_P -U root -P secret -i "%NCHOME% \omnibus\extensions\webha\objectserver\webha.sql"
Extending the backup ObjectServer
- UNIX:
$NCHOME/omnibus/bin/nco_sql -server AGG_B -user root –password password < $NCHOME/omnibus/extensions/webha/objectserver/webha.sql
- WINDOWS:
"%NCHOME%\omnibus\bin\isql" -S AGG_B -U root -P password -i "%NCHOME% \omnibus\extensions\webha\objectserver\webha.sql"
Extending the bidirectional aggregation ObjectServer Gateway
Append the table mappings and replication definitions for the dashdb database to the AGG_GATE configuration.
- UNIX:
cat $NCHOME/omnibus/extensions/webha/gateway/AGG_GATE.map.parts >> $NCHOME/omnibus/etc/AGG_GATE.map cat $NCHOME/omnibus/extensions/webha/gateway/AGG_GATE.tblrep.def.parts >> $NCHOME/omnibus/etc/AGG_GATE.tblrep.def
- WINDOWS:
type %NCHOME%\omnibus\extensions\webha\gateway\AGG_GATE.map.parts >> $NCHOME\omnibus\etc\AGG_GATE.map type %NCHOME%\omnibus\extensions\webha\gateway\AGG_GATE.tblrep.def.parts >> %NCHOME%\omnibus\etc\AGG_GATE.tblrep.def
The gateway must be stopped/restarted for the updates to its table mappings and replication definitions to become effective.
Removing the WebHA failover data from an ObjectServer failover pair
If you need to drop the WebHA configuration and data from a failover ObjectServer pair, use the following commands, depending on your operating system:
- UNIX:
$NCHOME/omnibus/bin/nco_sql -server AGG_P -user root –password secret < $NCHOME/omnibus/extensions/webha/objectserver/webha_rollback.sql
- WINDOWS:
"%NCHOME%\omnibus\bin\isql" -S AGG_P -U root -P secret -i "%NCHOME% \omnibus\extensions\webha\objectserver\webha_rollback.sql"
Run the following command for the backup server:
- UNIX:
$NCHOME/omnibus/bin/nco_sql -server AGG_B -user root –password secret < $NCHOME/omnibus/extensions/webha/objectserver/webha_rollback.sql
- WINDOWS:
"%NCHOME%\omnibus\bin\isql" -S AGG_B -U root -P secret -i "%NCHOME% \omnibus\extensions\webha\objectserver\webha_rollback.sql"
For more information, see Configuring a load balancing environment.
Updating the WebHA database schema in the ObjectServer
- DASH 3.1.3.15 or later
- Omnibus 8.1.0.30 or later
$NCHOME/omnibus/extensions/webha/update/update81fp26to81fp30
- Update the schema in the backup ObjectServer.
- Update the data mapping specification in the bi-directional gateway that synchronizes the primary and backup ObjectServers.
- Restart the bi-directional gateway.
Procedure
- Apply
$NCHOME/omnibus/extensions/webha/update/update81fp26to81fp30/update81fp26to81fp30_webha.sql
to an existing backup ObjectServer by running the following command against the server:Unix
$NCHOME/omnibus/bin/nco_sql -server AGG_B -user root -password secret < update81fp26to81fp30_webha.sql
Windows
"%NCHOME%\omnibus\bin\isql" -S AGG_B -U root -P password -i update81fp26to81fp30_webha.sql
- Update the bi-directional AGG_GATE gateway configuration:
- Update the
AGG_GATE table replication
definition by editing the current definition. This definition is usually found at:$NCHOME/omnibus/etc/AGG_GATE.tblrep.def
Append the following lines to the existing file:
Refer:REPLICATE ALL FROM TABLE 'dashdb.TRANSFORMATIONS' USING map 'dashhatransformationsmap'; REPLICATE ALL FROM TABLE 'dashdb.WIRES' USING map 'dashhawiresmap';
$NCHOME/omnibus/extensions/webha/update/update81fp26to81fp30/AGG_GATE.tblrep.def.parts
- Update the
AGG_GATE table mapping
definition by editing the current definition:cat $NCHOME/extensions/webha/update/update81fp26to81fp30/AGG_GATE.map.parts >> $NCHOME/omnibus/etc/AGG_GATE.map
- Update the
- Restart the AGG_GATE gateway for the changes to take effect.
- Verify that the AGG_B ObjectServer schema now contains the following tables as well as the same
data (if any) found in the primary server:
dashdb.TRANSFORMATIONS dashdb.WIRES