Farm / NLB Topologies

The following section discusses the deployment of K2 components in a Farm/NLB topology. Due to the nature of a farm environment and its extensibility, the following is just an example of a basic farm set up. When implementing a farm topology, configuration of Network Load balancing is required.

For best performance, K2 recommends installing the K2 web sites and web services on the same physical machine as the K2 application server components. Furthermore, when the K2 web sites and services and the K2 application server components are installed on the same physical machine, K2 recommends adding a hosts file entry to force any network communication between the K2 Websites hosted in IIS and the K2 Application server components on the same physical machine to stay within the machine boundaries. Please refer to the K2 Knowledge Base article Modifying the hosts file to improve performance for more information.
The following topology does not include integration with SharePoint. If you require SharePoint integration see the appropriate SharePoint section: SharePoint 2013, 2016 and Online.
Removing a K2 server from a farm does not remove references to that node in the K2 database. The farm will continue to poll the removed node in the server cluster. Contact support to remove all references to the node in the K2 database.

Farm/NLB environment with a separate SQL Server


Farm Install
User Machine N/A
NLB Web and Application Server(s) Internet Information Server (IIS):
  • K2 websites and K2 web services
  • K2 smartforms runtime site
  • K2 designer site
  • K2 Workspace (Deskop)
  • K2 Management
Application Server:
  • K2 server
SQL
  • K2 database

Considerations for a Farm Install

  • The K2 Workspace (Deskop) and Web Services, K2 Management, K2 Designer and SmartForms Runtime sites are hosted on a common IIS server. An option is to install K2 Workspace (Deskop) and the K2 Web Services on a separate web server farm. This will lessen the impact of client requests through Workspace on the K2 Application Server. K2 strongly recommends the preferred method of keeping the K2 websites on the same physical server as the K2 application server.
  • Network connection speed between the Application Server and the SQL server must be as fast as possible with as little latency as possible (physical servers should preferably be on the same Gigabit-backbone.)
  • K2 recommends you do not geographically separate the SQL Server from the application servers since this can introduce performance issues due to low bandwidth or latency between the K2 application servers and the SQL server.
  • The SQL Server can share physical resources with other SQL databases or SQL Server Instances on the same SQL server, or be located on a dedicated SQL server/instance, or be located on an Azure SQL DB.
    • K2 recommends that SQL administrators track performance of the SQL server and address performance issues through standard Microsoft SQL Server scaling approaches.
  • K2 Pass-Through Authentication (PTA) or Kerberos is required to pass user credentials between physical or logical servers.
  • NLB can be configured by using either the operating system or specific hardware. In either case, NLB configuration should be completed before installing K2 smartforms. When installing components that will be load balanced, the installation must be performed on each machine independently.