Archive for the ‘Load Balancer’ Category

[Quick] F5 BIGIP-How to configure RDGateway load balancer?

March 28, 2017

Windows is usually good enough for simple network load balancing methods, networking people know what challenges are when you load balance a specific workload. WNLB is good but limited in the ability to analyze data streams and then decided based on conditions. F5 or few other hardware load balancers a.e. Kemp are doing a amazing job here and they come into play where WNLB stops

here is an quick example how you can configure RD Gateway load balancing services on F5. There is an iApp template which you can import and makes it way more easy as many of the required settings are already there. You can get the template from –> BIGIP –> iApp. Download the zip and import only the RDS template


If you are going to terminate SSL connection on your F5 you have to import certificate incl private key onto the BIG-IP system. While the BIG-IP system does include a self-signed SSL certificate that can be used internally or for testing, we strongly recommend importing a certificate and key issued from a trusted Certificate Authority for processing client-side SSL. For information on SSL certificates on the BIG-IP system, see the online help or the Managing SSL Certificates for Local Traffic chapter in the Configuration Guide for BIG-IP Local Traffic Manager available at

as next, we can start creating the Application services in F5 with the iApp template we imported earlier. Application Services –> Create –> select template “f5.microsoft_rds_remote_access.V1.0.2”


to enable new RDP 8.0 features we have to choose “Windows 2012 R2” which will basically enable UDP traffic –>

Next is key and do depends on your specifics of your implementation, details what each question does can be found in deployment guide



SSL – I’m going to let the RDG servers handle SSL encryption which will basically just passthrough the traffic based on algorithm “least connection”. There are plenty of different load balancing algorithms available for my needs “least connection is just fine”.  there are also ways how you can stick connections to a users but that’s another story



Voila Smile sure that’s not all but should give just a high level overview and provide some useful context, hope this helps. Please see down below for getting more details on this

Deployment Guide – RDGateway

K16340: Microsoft Remote Desktop Gateway servers iApp template

Deploying Remote Desktop Gateway Step-by-Step Guide

Deploying F5 with Microsoft Remote Desktop Services


F5 BIGIP–java.lang.OutOfMemoryError

August 19, 2016

BIGIP one of the best hardware load balancers I used but sometimes the default configuration can’t fit with the way how you do utilize the BIGIP. java.lang.OutOfMemoryError – To mitigate receiving this message, you can use the provision.tomcat.extramb database variable to increase the maximum amount of Java virtual memory available to the tomcat process

Note: F5 recommends an initial increase of 20 MB, but it may not resolve all instances of the error message. If the java.lang.OutOfMemoryError errors continue, repeat this procedure, gradually increasing the value of <MB> until you no longer view the error message

Impact of procedure: Allocating additional memory to Apache Tomcat may impact the performance and stability of the BIG-IP system. You should perform this procedure only when directed by F5 Support after considering the impact to Linux host memory resources.