Restarting ORS services in Near Roaming Group
Below procedures map service restart scenarios and shall be used for all maintenance procedures for Near Roaming Group (NRG) members.
This procedure does not apply to Standalone ORS servers - standalone ORS can be restarted at will. See ORS - How to delete corrupted cache for details.
Responding to unattended ORS server reboot
Near Roaming Group with 2 members
follow Whole NRG cluster restart section.
Near Roaming Group with 3 or more members
Follow Restarting single ORS section
If there is a need to reboot more than one server at the same time, follow Whole NRG cluster section.
Restarting single ORS
Near Roaming Group with 2 members
follow Whole NRG cluster restart section.
Near Roaming Group with 3 or more members
Only one server can be going through the procedure below. Once completed, another server can be restarted. It is forbidden to restart 2 or more ORS servers at the same time. Should that be required, proceed with Whole NRG cluster restart.
Restart single ORS only when NRG is properly established. Before restart, verify that NRG is properly established on all ORS servers according to Verification that NRG is properly established section.
Stop all three ORS services in no particular order.
Delete cache (unless there is a specific guideline prepared by YSoft).
If cache deletion is undesirable, then follow "ORS service only restart" guideline.
If orsCacheRecovery property is disabled, manually delete all jobs from spooler while deleting the cache
Start service YSoft SafeQ ORS.
Do not start YSoft SafeQ ORS Web Service manually, proceed to next step. YSoft SafeQ ORS Web Service is started automatically.
Open ors.log located in SafeQORS\logs and wait until all data (users, jobs, devices, queues, terminals,... ) are downloaded.
In case orsFailoverLockManager property is enabled and appropriate license with " ORS failover and load balancing" feature is used , search for Download entities finished from other ORSes in NRG. Note: This can take up to 15 minutes, depending on number of users and jobs.
In case license without " ORS failover and load balancing" is used, search for End of processing of GetNewJobsByUsersResponseMessage. Note: Message appears in ors.log approximately after time defined in refreshRoamingJobCronRule property.
Start service YSoft SafeQ Terminal Server service. ORS should be excluded from authentication until this step.
At this point the ORS is fully operational.
Proceed as described in section Verification that NRG is properly established below.
Whole NRG cluster restart
Whole NRG cluster restart means that all ORS servers in that NRG are restarted. The procedure is as follows:
You can proceed with the following steps on each ORS at the same time. ORSes can be starting up in parallel, but it is good practice to start ORS servers one by one and start next ORS server when previous ORS server is fully operational (as described in step 6). Starting ORS servers one by one decreases load on CML.
On each server in the NRG stop all three ORS services in no particular order
Delete cache on all ORS servers
If orsCacheRecovery property is disabled, manually delete all jobs from all spoolers.
Start service YSoft SafeQ ORS.
Do not start YSoft SafeQ ORS Web Service manually, proceed to next step. YSoft SafeQ ORS Web service is started automatically.
Open ors.log located in SafeQORS\logs and wait until all data (users, jobs, devices, queues, terminals,... ) are downloaded from distributed layer.
In case orsFailoverLockManager property is enabled and appropriate license with " ORS failover and load balancing" feature is used , search for Download entities finished from other ORSes in NRG. Note: This can take up to 15 minutes, depending on number of users and jobs.
In case license without " ORS failover and load balancing" is used, search for End of processing of GetNewJobsByUsersResponseMessage. Note: Message appears in ors.log approximately after time defined in refreshRoamingJobCronRule property.
Start service YSoft SafeQ Terminal Server. ORS should be excluded from authentication until this step.
At this point the ORS is fully operational.
Once all ORS servers are started, proceed as described in section Verification that NRG is properly established below.
Special cases
Executed upon request from Y Soft CSS.
ORS service only restart
ORS service restart means that you restart only service YSoft SafeQ ORS without restarting YSoft SafeQ ORS Web or Terminal Server.
Restart service YSoft SafeQ ORS.
Open ors.log located in SafeQORS\logs and wait until all data (users, jobs, devices, queues, terminals,... ) are downloaded from distributed layer.
In case orsFailoverLockManager property is enabled and appropriate license with " ORS failover and load balancing" feature is used , search for Download entities finished from other ORSes in NRG. Note: This can take up to 15 minutes, depending on number of users and jobs.
In case license without " ORS failover and load balancing" is used, search for End of processing of GetNewJobsByUsersResponseMessage. Note: Message appears in ors.log approximately after time defined in refreshRoamingJobCronRule property.
Proceed as described below in section Verification that NRG is properly established.
Verification that NRG is properly established
Repeat the procedure for each ORS server in the NRG:
Connect to any ORS server in NRG
Go to directory c:\SafeQORS\bin and start file sqjconsole.bat
To tab Remote Process: enter <ORS_IP>:9999
When jConsole connects to ORS Web service go to tab MBeans
In menu navigate to distCache / CacheManager / "DefaultCacheManager" / CacheManager / Attributes
Verify that value of attribute clusterSize corresponds to number of members in NRG
Go to directory c:\SafeQORS\logs and open infinispan-server-rest.log.0 file and find last "Received new cluster view:" record. It must contain all NRG members in square brackets.
e.g. "INFO: ISPN000094: Received new cluster view: [QA11-S085-13009|1] [QA11-S085-13009, QA11-S086-44881]" This NRG contains 2 ORS servers.
If there is a need to reboot more than one server at the same time, follow Whole NRG cluster section.