RS Gateway Multi-Tenant Connection Properties

RS Gateway Multi-Tenant Connection Properties lists all RS Gateway properties, including the required connection properties.

Table 1. RS Gateway Multi-Tenant Connection Properties
Property Description
tenants The YAML list of tenants.
tenants[n].id The ID string for the tenant at index n.
tenants[n].serverAddress The MongoDB server address and port for connecting the tenant at index n to the Event Repository. For example:
serverAddress: localhost:27017
tenants[n].userName The MongoDB username.
tenants[n].password The MongoDB password.
tenants[n].isDNSSeedList Specifes whether the value of the tenants[n].serverAddress property corresponds to a DNS SRV record. When isDNSSeedList is no, the connection string has the mongodb:// prefix. When tenants[n].isDNSSeedList is yes, the connection string has the mongodb+srv:// prefix. The default value is no.
tenants[n].databaseName The name of the MongoDB database for storage of the events of the tenant at index n.

The following example shows base Event Repository database configuration followed by Event Repository database configuration for two tenants:

mongodb:
  serverAddress:     localhost:27017
  userName:          MtxAppFoo   
  password:          xxxxxxxx   
  isDNSSeedList:     "no"
  
  tenants:
    - id: foo  
      serverAddress:     localhost:27017  
      userName:          MtxAppFoo  
      password:          xxxxxxxx  
      isDNSSeedList:     "no"  
      databaseName:      MtxEventDatabaseFoo

    - id: bar  
      serverAddress:     localhost:27017  
      userName:          MtxAppBar  
      password:          xxxxxxxx  
      isDNSSeedList:     "no"  
      databaseName:      MtxEventDatabaseBar

For more information about multi-tenant MATRIXX installations, see the discussion about multi-tenancy support in MATRIXX Pricing and Rating.