Difference between revisions of "Message Concentrator"

From truxwiki.com
Jump to navigation Jump to search
Line 5: Line 5:
 
Using a concentrator reduces the number of connections to the message bus server to the number of machines connecting to the server.
 
Using a concentrator reduces the number of connections to the message bus server to the number of machines connecting to the server.
 
All ETL processes will connect to the local message bus server which will have a single connection to the real message bus server.
 
All ETL processes will connect to the local message bus server which will have a single connection to the real message bus server.
 +
 +
=How It Works=
 +
 +
The concentrator is hosted inside the Truxton Service and activated by setting the <code>mqconcentrator</code> option to <code>true</code>.
 +
This will cause Truxton to open a socket on port 2525 and wait for incoming connections.
 +
The concentrator will connect to the PostgreSQL message queue server and use this single connection to pass message traffic from all clients connected on port 2525.
  
 
=TruxtonSettings.xml=
 
=TruxtonSettings.xml=

Revision as of 17:18, 24 June 2020

Truxton uses a message bus proxy to minimize the number of connections to the PostgreSQL database server. PostgreSQL creates a new process for every connection to the server. If you have 20 clients, you will have spawned 20 processes on the server. Since Truxton ETL processes use PostgreSQL as the message queue server, it doubles the number of processes on the server since ETLs use one connection for meta data and another for message bus. Using a concentrator reduces the number of connections to the message bus server to the number of machines connecting to the server. All ETL processes will connect to the local message bus server which will have a single connection to the real message bus server.

How It Works

The concentrator is hosted inside the Truxton Service and activated by setting the mqconcentrator option to true. This will cause Truxton to open a socket on port 2525 and wait for incoming connections. The concentrator will connect to the PostgreSQL message queue server and use this single connection to pass message traffic from all clients connected on port 2525.

TruxtonSettings.xml

  <syslog>localhost</syslog>
  <syslogport>514</syslogport>
  <mqconcentrator>Yes</mqconcentrator>
  <mbp>MBCConnie.dll</mbp>