Starting the servers actually means to start several server processes. The Node Managers should be configured as services on all platforms.
On Windows this is configured automatically during the installation process, on Unix it is a manual step done after the installation.
It is required to know about the different components in IFS Middleware Server and understand the difference between a
Node Manager, an Admin Server and a Managed Server described
here.
NOTE: Compared to earlier releases of the middle tier server it is not enough to simply stop the windows services in order to stop the whole cluster! It will
only stop the Node Managers but the Admin Server, the Managed Servers and the HTTP
Server will still be running.
IFS Middleware Server can be controlled using scripts located under <ifs_home>/instance/<instance>/bin.
All the scripts referred to in this guide resides under this folder.
When starting the servers, the order each component is started in is important. They should preferably be started in the following order:
AS Node Manager -> Admin Server -> Managed Server(s)
The order of which the Managed Servers are started does not matter, i.e. ManagedServer3 can be started before ManagedServer1.
The HTTP Server follows the same logic:
HTTP Node Manager -> HTTP Server
However, the HTTP Server does not depend on the managed servers, so it is possible to start up the HTTP Server and then the Managed Servers.
The order is also important when bringing down the servers. Without the Node Manager or the Admin Server, the Managed Servers cannot be stopped. It is also important to stop all server instances correctly using the scripts because if a server is killed it will be started again thanks to the crash recovery feature. Shutting down the computer without properly stopping the servers will result in the servers getting started as soon as the computer is booted up again.
The order of which the Managed Servers should be shut down
Managed Server(s) -> Admin Server -> AS Node Manager
The order of which the HTTP server should be stopped.
HTTP Server -> HTTP Node Manager
There are two Node Managers that work independently of each other, so stopping one of them will have no effect on the other one. The scripts are a bit different depending on the platform since on windows they are controlled as services.
Command | Windows | Linux |
---|---|---|
Start Application Server Nodemanager | start_as_nodemanager.cmd |
./as_nodemanager.sh start |
Stop Application Server Nodemanager | stop_as_nodemanager.cmd |
./as_nodemanager.sh stop |
Start HTTP Nodemanager | start_http_nodemanager.cmd |
./http_nodemanager.sh start |
Stop HTTP Nodemanager | stop_http_nodemanager.cmd |
./http_nodemanager.sh stop |
There are different types of servers. Admin Server, Managed Server and HTTP Server. The HTTP
Server is controlled separately from the other servers.
It is recommended to make sure that the Admin Server is running before attempting to start or stop a
Managed Server, but the HTTP Server can be controlled without the Admin Server.
Always make sure that the Node Managers are running.
The start and stop scripts for the application servers takes one argument; the name of the server to start or stop. The argument is case sensitive except for the
Admin Server.
The name of the Managed Servers was given in the
Cluster member configuration step. If no argument is given the script will prompt for the name of the server.
The start and stop scripts will always prompt for the password.
Command | Windows | Linux | Arguments (optional) |
---|---|---|---|
Start Application Server | start_as_server.cmd |
./start_as_server.sh |
The name of the server to start |
Stop Application Server | stop_as_server.cmd |
./stop_as_server.sh |
The name of the server to stop |
Command | Windows | Linux |
---|---|---|
Start HTTP Server | start_http_server.cmd |
./start_http_server.sh |
Stop HTTP Server | stop_http_server.cmd |
./stop_http_server.sh |
Example:
Starting admin server:start_as_server AdminServer
Stopping admin server:stop_as_server AdminServer
Starting a managed server with name ManagedServer1:start_as_server ManagedServer1
Stopping a managed server with name ManagedServer1:stop_as_server ManagedServer1
It is also possible to start or stop all Managed Servers, the Admin Server and the HTTP Server at once except for the Node Managers. When using the start_all_servers script it is mandatory to start the Node Managers first and when using the stop_all_servers script the Node Managers will not be shut down automatically. The scripts take no arguments.
Command | Windows | Linux |
---|---|---|
Start All Server | start_all_servers.cmd |
./start_all_servers.sh |
Stop All Server | stop_all_servers.cmd |
./stop_all_servers.sh |
This script might run into some problems in case some servers are in an incompatible state.
It is possible to check the status of the cluster by using the check_server_status script. However, it will only check the status of the application server
Node Manager,
the admin server and the managed servers.
The script will if possible give the current status of all servers, but if the Node
Manager and the Admin Server is down, it is not possible for the script to get the status
of the Managed Servers.
Command | Windows | Linux |
---|---|---|
Check the server status of the cluster | check_server_status.cmd |
check_server_status.sh |
Example:
Check status of the cluster: check_server_status
Result:
Nodemanager is RUNNING AdminServer is RUNNING There are 3 server(s) in cluster: Cluster1 States of the servers are ManagedServer3---RUNNING ManagedServer2---SHUTDOWN ManagedServer1---RUNNING
If you do not want to use Windows services, then you have to start the batch and connect servers manually. The program/scripts for Batch Server and Connect Server are located in the <ifs_home>\instance\<Instance>\bin catalog.
The start scripts for the Batch Server and Connect Server are located in the <ifs_home>/instance/<Instance>/bin catalog.
A template for boot/shutdown is included as <ifs_home>/bin/ifsctl.sh.
This script should always be run as root and must be edited for your specific
installation, e.g. if more Batch/Connect servers are added.
This section is a reference of the capabilities, location, and names of the Unix version of the server scripts.
Command Script Basics | |
---|---|
Location | <ifs_home>/bin |
Name | ifsctl.sh |
Comment | Run as user root |
Command Script Parameters | |
start | calls subscripts with start argument |
stop | calls subscripts with stop argument |
install | calls subscripts with install argument |
Command Script Basics | |
---|---|
Location | <ifs_home>/instance/<Instance>/bin |
Name | batchserver1.sh |
Comment | Run as user ifs |
Command Script Parameters | |
start | starts the server |
stop | stops the server |
status | displays the status for the server |
Command Script Basics | |
---|---|
Location | <ifs_home>/instance/<Instance>/bin |
Name | connectserver1.sh |
Comment | Run as user ifs |
Command Script Parameters | |
start | starts the server |
stop | stops the server |
status | displays the status for the server |