miércoles, 30 de marzo de 2022

Crear múltiples instancias EMS en una máquina

Crear múltiples instancias EMS en una máquina 

En este post voy a explicar cómo crear una nueva instancia de EMS independiente en una máquina con una instancia activa.

Los pasos generales son:

1.- Crear los siguientes directorios nuevos para los archivos de configuración y datastore de la nueva instancia. Por ejemplo:

TIBCO_HOME/tibco/cfgmgmt/ems/data2/
TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore

2.- Copiar el archivo tibemsd.conf de la instancia activa al directorio creado y editar las rutas de los archivos .conf hacia la nueva ruta. Editar también el número de puerto y el nombre del servidor.

TIBCO_HOME/tibco/cfgmgmt/ems/data/tibemsd.conf copiar hacia TIBCO_HOME/tibco/cfgmgmt/ems/data2/tibemsd.conf

3.- Iniciar la nueva instancia con tibemsd64 apuntando hacia el nuevo tibemsd.conf

Desde la carpeta /tibco/ems/8.2/bin, ejecutar:

./tibemsd64 -config /home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/tibemsd.conf

[oracle@localhost bin]$ ./tibemsd64 -config /home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/tibemsd.conf

TIBCO Enterprise Message Service.
Copyright 2003-2015 by TIBCO Software Inc.
All rights reserved.

Version 8.2.2 V3 9/28/2015
2022-03-30 20:41:36.244 Process started from './tibemsd64'.
2022-03-30 20:41:36.248 Process Id: 28085
2022-03-30 20:41:36.248 Hostname: localhost.localdomain
2022-03-30 20:41:36.248 Hostname IP address: 127.0.0.1
2022-03-30 20:41:36.248 Reading configuration from '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/tibemsd.conf'.
2022-03-30 20:41:36.284 Logging into file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore/logfile'
2022-03-30 20:41:36.301 Server name: 'EMS-SERVER2'.
2022-03-30 20:41:36.301 Storage Location: '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore'.
2022-03-30 20:41:36.301 Routing is disabled.
2022-03-30 20:41:36.301 Authorization is enabled.
2022-03-30 20:41:36.301 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/users.conf'
2022-03-30 20:41:36.301 Administrator user not found, created with default password.
2022-03-30 20:41:36.301 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/groups.conf'
2022-03-30 20:41:36.301 Administrator group not found, created with default member.
2022-03-30 20:41:36.301 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/transports.conf'
2022-03-30 20:41:36.318 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/channels.conf'
2022-03-30 20:41:36.318 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/stores.conf'
2022-03-30 20:41:36.334 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/topics.conf'
2022-03-30 20:41:36.335 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/queues.conf'
2022-03-30 20:41:36.345 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/acl.conf'
2022-03-30 20:41:36.346 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/routes.conf'
2022-03-30 20:41:36.346 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/factories.conf'
2022-03-30 20:41:36.346 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/bridges.conf'
2022-03-30 20:41:36.346 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/tibrvcm.conf'
2022-03-30 20:41:36.346 Created file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/durables.conf'
2022-03-30 20:41:36.366 Accepting connections on tcp://localhost.localdomain/[::]:7224.
2022-03-30 20:41:36.366 Accepting connections on tcp://localhost.localdomain/0.0.0.0:7224.
2022-03-30 20:41:36.366 Recovering state, please wait.
2022-03-30 20:41:36.431 Creating store '$sys.nonfailsafe' file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore/async-msgs.db' ...
2022-03-30 20:41:36.438 Creating store '$sys.failsafe' file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore/sync-msgs.db' ...
2022-03-30 20:41:36.438 Creating store '$sys.meta' file '/home/oracle/TIBCO_HOME/tibco/cfgmgmt/ems/data2/datastore/meta.db' ...
2022-03-30 20:41:36.478 Server is active.

4.- Probar conectándose a la nueva instancia con tibemsadmin64.

Desde la carpeta /tibco/ems/8.2/bin, ejecutar:

[oracle@localhost bin]$ ./tibemsadmin64
TIBCO Enterprise Message Service Administration Tool.
Copyright 2003-2015 by TIBCO Software Inc.
All rights reserved.
Version 8.2.2 V3 9/28/2015
Type 'help' for commands help, 'exit' to exit:

> connect tcp://localhost.localdomain:7224

Login name (admin):
Password:

Connected to: tcp://localhost.localdomain:7224

tcp://localhost.localdomain:7224> show queues
All Msgs Persistent Msgs
Queue Name SNFGXIBCT Pre Rcvrs Msgs Size Msgs Size
$sys.admin +-------- 5* 0 0 0.0 Kb 0 0.0 Kb
$sys.lookup --------- 5* 0 0 0.0 Kb 0 0.0 Kb
$sys.redelivery.delay +-------- 5* 0 0 0.0 Kb 0 0.0 Kb
$sys.undelivered +-------- 5* 0 0 0.0 Kb 0 0.0 Kb
* $TMP$.EMS-SERVER2.6DB56244F8C03.1 --------- 5 1 0 0.0 Kb 0 0.0 Kb
tcp://localhost.localdomain:7224>

Les dejo aquí un video de cómo crear otra instancia de EMS en una máquina.


Espero les sirva.

No hay comentarios.:

Publicar un comentario