[]
        
(Showing Draft Content)

Deploy Services

The Wyn architecture is composed of several services including scheduler service, datasource service, memory db service, analysis db primary node service, and analysis db service. Each service has its own set of functions and usage. For more information about these services, please see the Wyn Architecture.


In this section, you will learn how to deploy Wyn services in a distributed Windows environment.

Updating Configuration File on Primary Node

To modify the configuration settings on the primary node:

  1. Stop the Wyn Enterprise service on the primary node machine.

  2. Copy the following folders from the primary node machine to the secondary node machine, here – C:⧵Program Files⧵Wyn:

    • DatasourceService

    • jre

    • MemoryDBService

    • MonetDB

    • SchedulerService

    You can access these folders on the primary node machine through the installation directory.

    Note: Apart from the service folders, we have also copied the jre and MonetDB folders. This is because the Datasource and Memory DB services are dependent on jre, while the Analysis DB service is dependent on MonetDB.

  3. Now, go to C:⧵Program Files⧵Wyn Enterprise⧵Monitor⧵conf and open the Wyn.conf file.

  4. Set the following to the IP address of the secondary node machine where you want to enable the services:

    • Serverhost of the SchedulerConfig element

    • AnalysisDBSeedNodes

    • DataSourceProxy

    • MemoryDBProxy

  5. Remove the services you want to deploy on the secondary node machine, such as Scheduler service, Datasource service, Memory DB service, and Analysis DB service.

    RemoveOtherService-Primary

  6. Save the changes, and close the configuration file.

Updating Configuration File on Secondary Node

To modify the configuration settings on the secondary node:

  1. Go to C:⧵Program Files⧵Wyn⧵Monitor⧵conf, and open the Wyn.conf file.

  2. Set the following to the IP address of the secondary node machine where you want to enable the services.

    • Serverhost of the SchedulerConfig element

    • AnalysisDBSeedNodes

    • DataSourceProxy

    • MemoryDBProxy

  3. Add the Services element to include the other services, that is, scheduler service, datasource service, memory db service, analysis db primary node service, and analysis db service.

    OtherServices-SecondaryNode

  4. Then, save the changes in the configuration file.

Restarting Primary and Secondary Nodes

To restart primary and secondary node machines, go to the Start menu, and click Power > Restart.

Tip: If you face an error while connecting to the Postgres database, then update the database configurations in the pg_hba.conf and postgresql.conf files at C:\ProgramData\Wyn Enterprise\pgsql\wyn_data folder.

• Update the listening address in postgresql.conf file from localhost to *.

• Update the host address in pg_hba.conf file from 127.0.0.1/32 to 0.0.0.0/0.

Deploying Multiple Scheduler Services

Wyn Enterprise introduces multiple deployments of the Scheduler Services with release 6.1 to improve stability. Multiple Scheduler Services should be deployed only when multiple servers are enabled. See the Deploy Servers help topic for information on deploying servers in the Wyn Enterprise application.

With the release of version v7.0, Scheduler Service supports multiple deployments and improves stability. However, it is recommended to deploy multiple scheduler services only when multiple servers are enabled.

In release v7.1, Scheduler Service supports service registration and service discovery. However, it is recommended to use it to configure multiple Scheduler Services instead of Seed Nodes.

Note: Wyn Enterprise still supports seed node configurations; however, when service registration and service discovery are set up, seed nodes will be disregarded, even if configured.

To deploy multiple Scheduler Services, prepare another secondary node and follow the below instructions,

  1. Stop the Wyn application on the primary node and copy the Scheduler Service folder from the primary node to the secondary node in the following folder - C:⧵Program Files⧵Wyn

  2. On the primary node machine, make the following modification in the Wyn.conf file to enable multiple scheduler service deployment,

    EnableMultiSchedulerService-Primarynode

    Few points to note when modifying the Wyn.conf file of the primary node machine,

    • When enabling multiple Scheduler Services, use SchedulerConfig >> ServiceDiscovery instead of SchedulerConfig >> ServerHost.

    • The connection string of Redis is GlobalSettings >> SchedulerConfig >> ServiceDiscovery >> ConfigString. You can use the same connection string for Server >> Cache >> DistributedMemoryCache >> ConfigString.

    • It is recommended to use the same database connection string as Server >> Storage in SchedulerService >> SchedulerConfig >> MultipleConfig >> DistributedQuartz. However, the database is different.

    • SchedulerService >> SchedulerConfig >> MultipleConfig >> DistributedMemoryCache >> ConfigString is the connection string of Redis. You can use the same connection string for Server >> Cache >> DistributedMemoryCache >> ConfigString.

  3. On the secondary node machine, make the following modifications in the Wyn.conf file to enable multiple scheduler service deployment,

    EnableMultiSchedulerService-OtherSecNode

  4. On the other secondary node machine, make the following modifications in the Wyn.conf file,

    EnableMultiSchedulerService-SecNode2

    There are a few points to note when modifying the Wyn.conf file of the primary node machine,

    • SchedulerConfig under GlobalSettings is to be modified for all secondary nodes where Workers or Servers are installed.

    • When using Sys:String in Wyn.conf, add the following at the top of Wyn.conf file,

       xmlns:sys="https://extendedxmlserializer.github.io/system
  5. Restart the Wyn Enterprise application on the primary node, and both the secondary nodes.