Scaling out the Smart Office server can be done for different reasons. Being able to serve more users or creating a more robust environment.
When talking scaling out an environment it is not only Smart Office server that needs to be considered, it is also the Grid Registry, Grid Session Provider and the connection points into Grid (Grid Routers) that must be included.
This article will describe one way of creating an environment with Smart Office that can handle a larger amount of users and also be more resilient for malfunction hardware using Infor Smart Office 10.2.1 and Infor ION Grid 11.1.13.
As a starting point Grid, LDAP Session Provider and Smart Office have already been installed.
Adding a host to Grid
The first thing needed is to add another host in the Grid and to be able to do that the host must first be added in Lifecycle Manager (LCM). The process of adding a host in LCM is described in the LCM install guide. The steps are shortly described below.
- On the new host go to the LCM portal page, normally http://server:4062 and download the Service Installation.

- Install the service with java.exe –jar installLcmService.jar
- After the installation the new host will be visible in the LCM client.

Now when LCM knows about the new host, Grid needs to span to the new host as well.
To add a host to the Grid:
- Find your Grid in the LCM client, right click on Grid Hosts and select Add Host.

- In the Add Host dialog, select the host previously added to LCM and press Next followed by Finish. Change ports, name etc if needed.

- In the Grid Topology View the new host should be visible.

Grid Registry
The Grid Registry cannot run simultaneously on several hosts, it can only run on one host at a time. But there is a failover mechanism. The failover mechanism will make sure the Grid Registry starts on another host if the primary host malfunctions.
To enable failover for Grid Registry do the following.
- In the LCM client find the Grid Hosts, right click on the ones that is tagged with registry and select Configure Registry Failover.

- In the Configure Registry Failover dialog, select the new host and press Next followed by Finished. (The Grid needs to re-start when changing the Grid Registry failover settings).

- Wait for the configuration task to finish and Grid to start again. On the failover host should now be tagged with failover.

Grid Routers and Load balancer
A load balancer must always be placed in front of Grid to be the single entry into the Grid to ensure that even if a host where a Router exists on dies it is still possible to connect to the Grid. A client will not know if a Grid host is failing or another host is added since it always connects to the load-balancer. But what if the load-balancer dies? There are techniques for having clustered load-balancers as well, but that is out of scope for this article.
In order for the load balancer to balance the calls to different servers there must be a Grid Router on each host. The load-balancer is configured with the hosts and https ports to the Grid Router on each host.
The load-balancer should also have a health mechanism so it automatically removes a hosts if it malfunctions.
Where to put the SSL certificate? In the load balancer, in the Grid Routers or in both can be debated. There are pros and cons with all solutions. The solution that works best with all Grid Session Providers and has less security flaws is to put the SSL certificate in the Grid Routers and configure the load-balancer for TCP pass-through.

Note that the SSL certificate used in each Grid Router must be issued with the load balancer address and it is recommended to use the same certificate in all routers.
Grid Routers
Either create a new Grid Router on each host that should be included by the load balancer or configure one router to be on started on <all hosts>.

Below is the Default Router set to be started on all hosts and they will all be using the same HTTPS port.

SSL Certificate
SSL certificates are managed per host, not per Grid Router, and must therefore be added for each host. It is recommended to use the exact same certificate on all hosts, clients may be confused if getting a different SSL certificate depending on which host is being called through the load balancer.
Before creating any SSL certificates decide the address of the load balancer.
To create a SSL certificate from an internal Certificate Authority (CA) and add it to all hosts do the following.
- In Grid Management Pages go to Configuration Manager -> Security->Certificates and click Manage Certificate on one of the hosts.

- Click the Create Certificate Signing Request (CSR).

- In the Create Certificate Signing Request (CSR) dialog make sure to change the Host FQDN (CN) value to the load balancer address. In this example I have also added the two host names as alternative names to remove certificate error if accessing them directly without going through the load balancer. It is not necessary to do so. Click the Create Request Overwrite Keys.

- Send the certificate request to your Certificate Authority and receive a certificate chain back, usually a .p7b file.
- Now import the certificate chain by clicking Import Signed SSL Certificate and select the file received from the certificate authority, followed by Import Certificate, followed by Import.

- The SSL certificate is now located on one of the hosts, to be able to import it on the second host export the SSL certificate by clicking Export SSL Certificate with private key. Use Oracles Java key-store and give the key-store a password.

- Go back to Configuration Manager->Security->Certificates and select the other host.
- Click Import SSL Certificate with private key. Select the file previously exported.

- Now both of the Grid Routers will use the same SSL certificate.
Load balancer
In a production environment a load-balancer is most often a piece of hardware, for more information contact your hardware vendor. In a test environment a software load-balancer can be used. For this blog post I used http://nginx.org/ which has a community edition that is free and works on several operating systems including Windows. In my example I have configured nginx with TCP pass-through to two servers. The configuration file is similar to this.
stream {
server {
listen 3443;
proxy_pass grids;
}
upstream grids {
server server1.infor.com:55151;
server server2.infor.com:55151;
}
}
For more details see the nginx documentation.
Grid Applications
Some Grid Applications can be scaled out to several machines, other cannot. Some can run several instances at the same time and some cannot. Both Smart Office and the different Grid Session Providers are Grid Applications and have some different characteristics. The details are listed below.
Even if a Grid Application cannot run two instances at the same time most Grid Applications can be started on another host if the original host dies. Within minutes a fully working environment is up and running without human interaction.
There are a couple of things that needs to be prepared and considered when implementing a complex environment when it comes to Grid Applications.
- Deploy Grid Applications to hosts
- Configure Grid Bindings
- Make sure there is enough memory
Deploy Grid Applications
Deploying a Grid Application to a host is a matter of distributing the binaries, nothing will run just by deploying a Grid Application to one or more hosts.
To deploy a Grid Application to a host, in the LCM client find the installed Grid Application, right click and select Application Maintenance->Deploy Application on Hosts

In the Deploy Application on Hosts dialog, select the hosts where the application should be able to run and press Next. Press Finish.
The Grid Application is now possible to start on all hosts it is deployed to.
Grid Bindings
The Bindings for a Grid application is found on the application page in Grid Configuration Manager.

Click the pencil to edit the Binding.

For a robust scenario you would like to have the Grid Application run on a minimum of two hosts always to ensure having at least one instance running even if a host dies. Mark the hosts where this binding should be enforced and select Constraint Type to be Per Host. This configuration will result in one instance of the application running on each of the selected hosts.
If having Constraint Type set to Global and Min to 2 would result in almost the same behavior. There will still be two instances of the application but it is not defined if the running instances will be started on the same host or not.
When having an application that only can run in a single instance the following configuration would result as a failover behavior. Constraint Type = Global and Min = 1.

If the host where the application run on dies, Grid will make sure that the application is started on another host that has been marked in the Binding. By using the Preferred Host property it is possible to hint where the application should run if all hosts are working fine. Within minutes a new instance has started if the first host dies.
Resources
When having Grid Applications that cannot run several instances at the same time but have deployed the application to several hosts Grid will start the application on another host if the preferred host dies. Verify that there is enough memory left on the host where the application is supposed to start before a failover will occur.
Note that memory consumptions from other application will not be taken into account.
Grid Session Provider
There are several Session Providers that can be used in Grid (LDAP, Windows, SAML and DSSO). In practice it is only the SAML Session Provider that supports both failover and can run on multiple hosts and there fore . For these reasons it is recommended to always use SAML Session Provider in environments that requires high stability.
Use the methods describes above to deploy the session provider to additional hosts and configure the bindings. The table below describes what each Session Provider supports.
Session Provider |
Can be deployed to several hosts |
Can run multiple instances |
LDAP SP 1.10.14 |
Yes* |
Yes* |
Windows SP 1.10.7 |
Yes |
No |
SAML SP 1.13.12 |
Yes |
Yes |
DSSO SP 2.0.7 |
No |
No |
* LDAP SP can only be deployed to several hosts if configuring the connection to the LDAP with the LDAP protocol. If using LDAPS or Start TLS protocol the LDAP SP will not function properly if deployed to another host. Note! The LDAP protocol should never be used since it sends userid and password in clear text over the network.
Configure Smart Office when using a load-balancer
The Smart Office server must be configured to execute on more than one host and the installation point must be configured to use the load-balancer.
Server
Configuring Smart Office server when using a load-balancer is done with a few steps.
- Deploy Smart Office Server to more than one host by following the steps above.
- Configure the Smart Office binding to use more than one host, set Constraint Type to Per Host and set Min to 1. After saving the Binding the Smart Office will immediately start on the new host.
Installation Point
When installing the Smart Office client Microsoft Click Once verifies that the installation point URL stated in the installation matches how the installation is accessed. When accessing the installation point through a load balancer, it is the load balancer address that must be put in the Click Once installation. The Smart Office client must also know the URL to the Smart Office server, which also goes through the load balancer.
To change these URLs open the management pages for Smart Office in Grid Management Pages and click Installation Point Configuration.

Change the Installation URL and HTTPS URL to the Grid to point to the load balancer. I am using the https port only but if the load-balancer is configured to pass through both http and https, http can of course still be used for the installation point. Do not forget to save (some versions of Smart Office has a bug that wrongly shows the old values after saving).

Now use the normal procedure described in the installation guide on how to export/sign/import the installation point.
To install Smart Office client open an Internet Explorer and navigate to https://<load_balancer_address>:port/mango
Smart Office limitations when using a load-balancer
Collaborations does not work properly when using a load-balancer and should be turned off.
Turn off collaborations by setting the property Enable collaboration server to false.

M3
Both M3 UI Adapter and M3 H5 Client Enterprise can be configured as Smart Office server, both be deployed to several hosts and run multiple instances at the same time. The process of deploying the application to another host and configuring the Grid Bindings are exactly the same for both M3 UI Adapter and M3 H5 Client Enterprise.
You must be logged in to post a comment.