Installing an enterprise system

Configuration types for enterprise systems

When installing an enterprise system, LDD can be installed by using the following hardware configurations:

Configuration

Description

Advantages

Disadvantages

1-N

The database (DB) and load balancer (LB) are on one computer, and the server is on one or more computers. This setup is the most common when failover is not used.

The 1-N configuration diagram

Improved performance

Increased hardware needs, no failover for database or load balancer

1-1-N

The database (DB) and load balancer (LB) are on separate computers, and the server is on one or more computers.

The 1-1-N configuration diagram

Note: An external Microsoft SQL Server database may be installed in place of the standard database, resulting in an E-1-N configuration. The external database (E) and load balancer (LB) are on separate computers, and the server is on one or more computers.

Further improved performance

Further increased hardware needs, no failover for database or load balancer

X-N

The database (DB) and load balancer (LB) together are on X computers in an MSCS for failover. The server is on one or more computers. This setup is the most common when failover is used.

The X-N configuration diagram

High availability, improved performance

Increased hardware needs, cluster licensing

X-Y-N

The database (DB) is on X computers in an MSCS for failover. The load balancer (LB) is on Y computers in an MSCS for failover. The server is on one or more computers.

The X-Y-N configuration diagram

Note: An external Microsoft SQL Server database may be installed in place of the standard database, resulting in an E-Y-N configuration. The external database (E) on X computers and the load balancer (LB) on Y computers are in an MSCS for failover. The server is on one or more computers.

High availability, further improved performance

Further increased hardware needs, cluster licensing


Setting up multiple systems for high availability

When configuring multiple LDD systems, you can connect them to a hardware load balancer or Global Site Selector (GSS). This configuration provides high availability, without using clustering, and increased capacity.

The hardware load balancer diagram

Each system group contains two identical LDD systems. Jobs are balanced between these systems in each group by the hardware load balancer or GSS. If one system fails, then the hardware load balancer or GSS directs jobs to other systems in the group until the failed system is online again.

With this type of setup, you need extra computers and a hardware load balancer or GSS. The configuration of these systems must be identical.

Note: Printers that do not support eSF applications cannot be used with an LDD system that uses a hardware load balancer or GSS.

If a hardware load balancer is used with multiple LDD systems, then configure the hardware load balancer with the following:

System sizing guidelines

To determine the number of servers required to process jobs efficiently, consider the following factors:

When installed on the recommended hardware and connected using Gigabit Ethernet, the database can also process 200000 logged messages per hour. When using a typical solution that logs five messages per job, this process generates approximately 40000 jobs per hour. If this limit is reached, then using multiple systems may be necessary.

Peak demand

To determine the number of servers necessary to handle peak loads for a particular solution, use the following formulas:

(System-wide hourly job rate) = (system printer capacity) x (jobs per printer per day) / (length of business day)

(Peak demand) = 2 x (system-wide hourly job rate)

(Minimum number of servers) = (peak demand) / (single-server throughput for current solution)

Consider the following example:

Perform the following calculations:

  1. Determine the system-wide hourly job rate:

    (300 printers) x (100 daily jobs/printer) / (8 hours/day) = 3750 jobs/hour

  2. Determine the peak demand:

    2 x (3750 jobs/hour) = 7500 jobs/hour

  3. Determine the minimum number of servers:

    (7500 jobs/hour) / (3000 jobs/hour) = 2.5

    Rounding up, the system must have three servers to handle the peak load reliably for a solution with average execution time of less than 30 seconds.

The typical throughputs on a server with the recommended hardware are the following:

Solution processing load

Functions used

Average single-server throughput

Typical

  • Some image processing

  • Printing

6000–8000 jobs per hour

Heavy

  • Extensive image processing

  • Bar codes

  • External processes

  • Small to medium Document Producer (e-forms) jobs

2000–3000 jobs per hour

Very heavy

  • OCR

  • Large Document Producer (e-forms) jobs

100–200 jobs per hour


Note: Using less than the recommended RAM significantly reduces throughput. For example, when using a solution with a heavy processing load, a dual-processor server with only 2GB of RAM can process 600–800 jobs/hour only.

For more information, see the Lexmark Document Distributor SDK Guide.

Concurrency

Each server that meets recommended requirements can process 30 concurrent jobs from clients. To determine the number of servers necessary to meet concurrency requirements, use the following formula:

(minimum number of servers) = (number of printers expected to submit jobs near the same time) / 30

For example, assume that 1/3 of the 300 printers might be active at the same time:

100 / 30 = 3.33

Rounding up, the system must have four servers to allow for 100 active printers for a solution with average execution time of less than 30 seconds.

Installation overview for an enterprise system

  1. Select a system configuration, and then configure the appropriate hardware on the network.

  2. Using a Network Time Protocol (NTP) server, synchronize the time on all computers that are used in the LDD system.

  3. Install the system components. Do the following:

    Note: If you are using Firebird database when installing LDD, then the system components can be installed in any order. If you are using Microsoft SQL Server database, then see Configuring LDD with a Microsoft SQL Server database.
    1. Install the database.

    2. Download and activate licenses on the computer where the load balancer must be installed.

    3. Install the load balancer.

    4. If you are using one or more MSCS, then extend the database and load balancer to standby nodes.

    5. Install the servers.

      Note: When installing multiple servers, install one server at a time.
  4. Change the administrator password. If necessary, change the administrator user name.

  5. To test function, set all servers online temporarily. For more information, see Viewing and changing server status.

Notes:

Installing the database and load balancer without clustering (configurations 1, 1-N, and 1-1-N)

Installing the database
Note: If you are using a Microsoft SQL Server database, then do not install the Firebird database component.

From the system where you want to install the database, do the following:

  1. From the LDD installation package, run Setup.exe.

  2. Select a language for the installation, and then click OK.

  3. From the LDD Setup window, click Next.

  4. Select Install LDD system components, and then click Next.

  5. Accept the license agreement, and then click Next.

  6. From the list of components, select Database, and then click Next.

  7. Specify a location for the installation, and then click Next.

    Note: The installation path must not contain double-byte characters.
  8. Select your database IP address, and then click Next.

    Note: If necessary, select Allow only IP address.
  9. If you are installing a backup recovery system, then select Restore Install (RI), browse to the .ri file, and then click Next.

  10. Review the setup information, and then click Next.

  11. Click Install.

Installing the load balancer

From the system where you want to install the load balancer, do the following:

  1. From the LDD installation package, run Setup.exe.

  2. Select a language for the installation, and then click OK.

  3. From the LDD Setup window, click Next.

  4. Select Install LDD system components, and then click Next.

  5. Accept the license agreement, and then click Next.

  6. From the list of components, select Load balancer, and then click Next.

  7. Specify a location for the installation, and then click Next.

    Note: The installation path must not contain double-byte characters.
  8. Select your load balancer IP address, and then click Next.

    Note: If necessary, select Allow only IP address.
  9. Specify the host name or IP address of the database, select the database type, and then click Next.

    Notes:

    • If you are installing a Microsoft SQL Server database, then make sure that the database is installed before proceeding with the load balancer installation.
    • To allow the domain account to access the Microsoft SQL Server database, enable integrated security when installing the database. Make sure that the domain account is granted access to the Microsoft SQL Server database. It must also have full control privileges to the LDD installation path on the application servers and all its subfolders.
    • Do not use localhost or the loopback IP address (127.0.0.1) for the location of the database.
    • When you are installing a configuration other than configuration 1, set the location of the database during installation. If the database is moved, or the IP address of the database changes, then reinstall the load balancer. For more information on changing the IP address of a configuration 1 system, see Changing the IP address on a configuration 1 system.
  10. If you are installing a backup recovery system, then select Restore Install (RI), browse to the .ri file, and then click Next.

  11. Review the setup information, and then click Next.

  12. Click Install.

Installing the database and load balancer with clustering (configurations X-N and X-Y-N)

Before you begin, make sure that:

Setting up firewall exceptions on a Windows Server 2008 or Windows Server 2012 cluster node
  1. Create a temporary directory.

  2. From the install\Cluster_Config_Script folder of the installation package, copy the batch files to the temporary directory.

  3. Run the command prompt as an administrator, and then access the temporary directory.

  4. Run the batch files.

    Note: If you are using a Microsoft SQL Server database, then do not run the database firewall batch file.
Installing the database

Notes:

  1. From the LDD installation package, run Setup.exe.

  2. Select a language for the installation, and then click OK.

  3. From the LDD Setup window, click Next.

  4. Select Install LDD system components, and then click Next.

  5. Accept the license agreement, and then click Next.

  6. From the list of components, select Database, and then click Next.

  7. Specify a location on a shared cluster disk for the installation, and then click Next.

    Note: The installation path must not contain double-byte characters.
  8. Select the host name or IP address of the logical host of the cluster, and then click Next.

    Note: If necessary, select Allow only IP address.
  9. If you are installing a backup recovery system, then select Restore Install (RI), browse to the .ri file, and then click Next.

  10. Review the setup information, and then click Next.

  11. Click Install.

Installing the load balancer
  1. From the LDD installation package, run Setup.exe.

  2. Select a language for the installation, and then click OK.

  3. From the LDD Setup window, click Next.

  4. Select Install LDD system components, and then click Next.

  5. Accept the license agreement, and then click Next.

  6. From the list of components, select Load balancer, and then click Next.

  7. Specify a location on a shared cluster disk for the installation, and then click Next.

    Note: The installation path must not contain double-byte characters.
  8. Select the host name or IP address of the logical host of the cluster, and then click Next.

    Note: If necessary, select Allow only IP address.
  9. Specify the host name or IP address of the logical host, select the database type, and then click Next.

    Notes:

    • If you are using a Microsoft SQL Server database, then make sure that the database is installed before proceeding with the load balancer installation.
    • To allow the domain account to access the Microsoft SQL Server database, enable integrated security when installing the database. Make sure that the domain account is granted access to the Microsoft SQL Server database. It must also have full control privileges to the LDD installation path on the application servers and all its subfolders.
    • Do not use localhost or the loopback IP address (127.0.0.1) for the location of the database.
    • If you are installing on a cluster, then set the location of the database during installation. If the database is moved, or the IP address of the database changes, then reinstall the load balancer. You can also contact your Lexmark representative to help modify the current installation.
  10. If you are installing a backup recovery system, then select Restore Install (RI), browse to the .ri file, and then click Next.

  11. Review the setup information, and then click Next.

  12. Click Install.

Extending the database and load balancer to standby nodes

On the primary node of each failover cluster, do the following:

  1. Run the Lexmark Solutions Cluster Configuration script:

    1. Create a temporary directory.

    2. From the install\Cluster_Config_Script folder of the installation package, copy either of the following to the temporary directory:

      • LexmarkSolutionsClusterConfigScript_WMIProvider.vbs

      • LexmarkSolutionsClusterConfigScript.vbs

    3. Run the command prompt as an administrator, and then access the temporary directory.

    4. Run the VBScript file by typing either of the following:

      • cscript LexmarkSolutionsClusterConfigScript_WMIProvider.vbs

      • cscript LexmarkSolutionsClusterConfigScript.vbs

  2. Follow the instructions on the screen.

Installing servers

Note: When you are installing multiple servers, install one server at a time.

From the system where you want to install the server, do the following:

  1. From the LDD installation package, run Setup.exe.

  2. Select a language for the installation, and then click OK.

  3. From the LDD Setup window, click Next.

  4. Select Install LDD system components, and then click Next.

  5. Accept the license agreement, and then click Next.

  6. From the list of components, select Server, and then click Next.

    Note: You can install optional server components, such as Barcode Read, Barcode Write, and OCR, after the LDD installation.
  7. Specify a location for the installation, and then click Next.

    Note: The installation path must not contain double-byte characters.
  8. For multiple networks, select the IP address to which you want to bind the server, and then click Next.

    Note: If necessary, select Allow only IP address.
  9. Specify the host name or IP address of the load balancer and of the database, select the database type, and then click Next.

    Notes:

    • If you are using a Microsoft SQL Server database, then make sure that the database is installed before proceeding with the server installation.
    • To allow the domain account to access the Microsoft SQL Server database, enable integrated security when installing the database. Make sure that the domain account is granted access to the Microsoft SQL Server database. It must also have full control privileges to the LDD installation path on the application servers and all its subfolders.
    • Do not use localhost or the loopback IP address (127.0.0.1) for the location of the database or load balancer.
    • If you are using DNS aliases when connecting to a backup system during a recovery, then use the DNS aliases of the database and load balancer.
    • If necessary, select Hardware Load balancer, and then type the IP address of a hardware load balancer, such as F5 or GSS. Use this setting only if all the printers in the LDD system support eSF applications.
  10. Review the setup information, and then click Next.

  11. Click Install.

  12. Notes:

Installing LDD on a network load balancer (NLB) cluster

Before you begin, make sure that:

Installation overview for an NLB cluster

  1. Install the central database. The central database may be Microsoft SQL Server or Firebird.

    Note: We recommend using a central database with a RAID storage and that has NIC Teaming configured.
  2. Install the load balancers on all NLB cluster nodes.

  3. Using a text editor, open the httpd.conf file from the <install-Dir>/Lexmark/Solutions/Apache2/conf directory, where <install-Dir> is the installation folder of LDD, and then change the following:

    • Listen y:9780 to Listen *:9780

    • <VirtualHost y:9780> to <VirtualHost *:9780>

    Where y is the IP address of the load balancer.

  4. Save and close the file.

  5. Using a text editor, open the httpd-ssl.conf file from the same directory, and then change the following:

    • Listen y:9783 to Listen 9783

    • Listen x:443 to Listen 443

    • <VirtualHost y:9783 y:443> to <VirtualHost *:9783 *:443>

    Where y and x are the IP addresses that are associated with the system.

  6. Save and close the file.

  7. From the Services panel on the system, restart the Apache2.4 service.

  8. Install the application servers.

Notes:

Configuring an NLB cluster

Note: All the LDD load balancers must be members of the NLB cluster.
  1. From Network Load Balancing Manager on any cluster member, right-click on a cluster, and then click Cluster Properties.

  2. From the Cluster IP Addresses tab, check that all load balancer IP addresses are added.

  3. From the Cluster Parameters tab, check that the full internet name is resolvable by all the cluster members.

  4. Set "Cluster operation mode" to Multicast, and then click OK.

  5. From the Port Rules tab, check that the rules for the following port numbers are added:

    • TCP 9780

    • TCP 9783

    • TCP 443

  6. For each port rule, do the following:

    1. Check that the "Cluster IP address" or NLB virtual IP address is the same as the Hardware Load Balancer address set during the application server installation.

    2. Set "Filtering mode" to Multiple host.

    3. Set "Affinity" to Single.

    4. Set the timeout between two to five minutes.

  7. Click OK.

Configuring LDD for multiple subnet failovers for Microsoft SQL Server AlwaysOn Availability

  1. From the LDD setup window, in the Install Load Balancer page, type the name of the availability group listener as the host name of the database.

  2. Select Microsoft SQL as the database, and then click Next.

  3. Leave the Instance Name field blank, and then enter the port number of the availability group listener.

  4. Click Next, and then continue with the installation.

  5. Configure the load balancer. Using a text editor, open the mssql_database.properties file from the <install-Dir>\ApacheAgent\Classes folder, where <install-Dir> is the installation folder of LDD, and then add multiSubnetFailover=true.

    Sample configuration settings

    database.connection.url=${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true; multiSubnetFailover=true;${database.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.quartz.dataSourcePath=databaseName=QUARTZ
    
    database.quartz.connection.url=${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true; multiSubnetFailover=true;${database.quartz.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.monitor.dataSourcePath=databaseName=MONITOR
    
    database.monitor.connection.url=${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true; multiSubnetFailover=true;${database.monitor.dataSourcePath}$
    {database.instancename.urlstr}
    
  6. Using a text editor, open the dbProduct.properties file and then make sure that the database.hostname element points to the host name of the availability group listener. For example, change database.hostname=x to database.hostname=y, where x is any IP address, and y is the host name of the availability group listener.

  7. Configure the server. Using a text editor, open the mssql_database.properties file from the <install-Dir>apps\wf-ldss\WEB-INF\classes\dbProduct.properties folder, where <install-Dir> is the installation folder of LDD, and then add multiSubnetFailover=true.

    Sample configuration settings

    database.connection.url=${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true; multiSubnetFailover=true;${database.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.quartz.dataSourcePath=databaseName=QUARTZ
    database.quartz.connection.url =  ${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true;multiSubnetFailover=true;${database.quartz.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.monitor.dataSourcePath=databaseName=MONITOR
    database.monitor.connection.url= ${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true;multiSubnetFailover=true;${database.monitor.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.solution.dataSourcePath =databaseName=SOLUTIONINFO
    database.solution.connection.url= ${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true;multiSubnetFailover=true;${database.solution.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.eforms.dataSourcePath=databaseName=EFORMS
    database.eforms.connection.url= ${database.jdbcstr}//${database.hostname}${database.port.urlstr}
    ;integratedSecurity=true;multiSubnetFailover=true;${database.eforms.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.license.dataSourcePath=databaseName=LICENSE
    database.license.connection.url= ${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true;multiSubnetFailover=true;${database.license.dataSourcePath}$
    {database.instancename.urlstr}
    
    database.webappconfig.dataSourcePath=databaseName=WEBAPPCONFIG
    database.webappconfig.connection.url= ${database.jdbcstr}//${database.hostname}${database.port.urlstr};
    integratedSecurity=true;multiSubnetFailover=true;${database.webappconfig.dataSourcePath}$
    {database.instancename.urlstr}
    
  8. Save and close the file.

  9. From the Windows Services control panel on the server computer, restart the Lexmark Solutions Apache Agent and the Lexmark Solutions Application Server. For more information, see Restarting the Lexmark Solutions Application Server.

In SQL Server Management Studio, tables are created for the databases.

Configuring LDD with a Microsoft SQL Server database

If you are using Microsoft SQL Server as the back-end database, then make sure that:

Note: To allow the domain account to access the Microsoft SQL Server database, enable integrated security when installing the database. Make sure that the domain account is granted access to the Microsoft SQL Server database. It must also have full control privileges to the LDD installation path on the application servers and all its subfolders.

For LDD to work with Microsoft SQL Server, create seven databases before the load balancer and server are installed. Do the following:

  1. Open the CreateDatabase.sql file at installerpath\mssql\scripts\CreateDatabase.sql, where installerpath is the location of the LDD installer.

  2. Modify the script to control the creation of the LDD databases in Microsoft SQL Server, and then save the file.

    Note: The CreateDatabase.sql file contains the minimum database size required for LDD. You can increase the database size as necessary.
  3. From Microsoft SQL Server, run the command prompt as an administrator, and then type the following:

    sqlcmd -i installerpath\mssql\scripts\CreateDatabase.sql -o outputfilepath\MyOutput.txt

    where:

    • installerpath is the location of the LDD installer.

    • outputfilepath is the location where you want to save the log file.

  4. Confirm that the databases are installed successfully. Do the following:

    1. Type sqlcmd -S . to connect to the default instance.

    2. Type select name from sys.databases to show all databases.

  5. From the SQL Server Configuration Manager, enable the TCP/IP connections and then set the port number to 1433. For more information, see the help information for Microsoft SQL Server.

Note: You can also migrate data from Firebird to Microsoft SQL Server. For more information, see the Readme file for database migration at InstallCD\install\mssql_migration\readme_migration.txt, where InstallCD is the location of the LDD installer CD.