VMware Networking Community
rogerscual
Enthusiast
Enthusiast
Jump to solution

Problems with loadbalancer

I have some problems configuring load balancer, in this case is one arm load balancer. I think that the configuration is pretty simple, I'm just trying to balance HTTP traffic, all the VMs are in the same subnet 172.31.1.0/16 the load balancer Edge as well, it only has an interface with IP 172.31.1.101 but the load balancer module status is stopped.

screenshot.png

But in the configuration the Load Balancer is enabled.

screenshot.png

This is the configuration.

LB-1-0> show configuration loadbalancer

-----------------------------------------------------------------------

vShield Edge Loadbalancer Config:

{

   "monitorService" : {

      "enable" : true,

      "logging" : {

         "enable" : true,

         "logLevel" : "info"

      },

      "healthMonitors" : [

         {

            "extension" : null,

            "send" : null,

            "maxRetries" : 3,

            "expected" : null,

            "name" : "default_tcp_monitor",

            "interval" : 5,

            "receive" : null,

            "timeout" : 15,

            "url" : null,

            "method" : null,

            "type" : "tcp"

         },

         {

            "extension" : null,

            "send" : null,

            "maxRetries" : 3,

            "expected" : null,

            "name" : "default_http_monitor",

            "interval" : 5,

            "receive" : null,

            "timeout" : 15,

            "url" : "/",

            "method" : "GET",

            "type" : "http"

         },

         {

            "extension" : null,

            "send" : null,

            "maxRetries" : 3,

            "expected" : null,

            "name" : "default_https_monitor",

            "interval" : 5,

            "receive" : null,

            "timeout" : 15,

            "url" : "/",

            "method" : "GET",

            "type" : "https"

         }

      ]

   },

   "loadBalancer" : {

      "enable" : true,

      "logging" : {

         "enable" : true,

         "logLevel" : "info"

      },

      "vips" : [

         {

            "maxConn" : 0,

            "rateLimit" : 0,

            "mode" : "http",

            "applicationRules" : null,

            "name" : "SIMPLE-HTTP",

            "redirection" : null,

            "accelerationEnabled" : false,

            "serverSsl" : null,

            "serverSslEnabled" : false,

            "insertXForwardedFor" : false,

            "ipAddresses" : [

               "[172.31.1.101]:80"

            ],

            "sessionPersistence" : null,

            "defaultPool" : null,

            "clientSsl" : null

         }

      ],

      "applicationRules" : null,

      "objectSet" : null,

      "accelerationEnabled" : false,

      "pools" : [

         {

            "algorithm" : {

               "headerName" : null,

               "uriDepth" : null,

               "urlParam" : null,

               "method" : "round-robin",

               "uriLength" : null

            },

            "members" : [

               {

                  "maxConn" : 0,

                  "minConn" : 0,

                  "ipAddress" : "172.31.1.5",

                  "objectId" : null,

                  "name" : "WEB-1",

                  "port" : 80,

                  "weight" : 1,

                  "monitorPort" : 80,

                  "healthMonitors" : [

                     "default_http_monitor"

                  ],

                  "condition" : "enabled"

               },

               {

                  "maxConn" : 0,

                  "minConn" : 0,

                  "ipAddress" : "172.31.1.6",

                  "objectId" : null,

                  "name" : "WEB-2",

                  "port" : 80,

                  "weight" : 1,

                  "monitorPort" : 80,

                  "healthMonitors" : [

                     "default_http_monitor"

                  ],

                  "condition" : "enabled"

               }

            ],

            "applicationRules" : [],

            "name" : "WEB-Simple",

            "transparent" : {

               "enable" : false

            }

         }

      ]

   }

}

Thanks.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
larsonm
VMware Employee
VMware Employee
Jump to solution

Check the configuration of your VIP.  It appears that your default pools is listed as null.  Populate your VIP with the pool containing Web-1 and Web-2

    "vips" : [

         {

            "maxConn" : 0,

            "rateLimit" : 0,

            "mode" : "http",

            "applicationRules" : null,

            "name" : "SIMPLE-HTTP",

            "redirection" : null,

            "accelerationEnabled" : false,

            "serverSsl" : null,

            "serverSslEnabled" : false,

            "insertXForwardedFor" : false,

            "ipAddresses" : [

               "[172.31.1.101]:80"

            ],

            "sessionPersistence" : null,

            "defaultPool" : null,

            "clientSsl" : null

         }

View solution in original post

0 Kudos
2 Replies
larsonm
VMware Employee
VMware Employee
Jump to solution

Check the configuration of your VIP.  It appears that your default pools is listed as null.  Populate your VIP with the pool containing Web-1 and Web-2

    "vips" : [

         {

            "maxConn" : 0,

            "rateLimit" : 0,

            "mode" : "http",

            "applicationRules" : null,

            "name" : "SIMPLE-HTTP",

            "redirection" : null,

            "accelerationEnabled" : false,

            "serverSsl" : null,

            "serverSslEnabled" : false,

            "insertXForwardedFor" : false,

            "ipAddresses" : [

               "[172.31.1.101]:80"

            ],

            "sessionPersistence" : null,

            "defaultPool" : null,

            "clientSsl" : null

         }

0 Kudos
rogerscual
Enthusiast
Enthusiast
Jump to solution

Good catch, once I did that the service status is now running:

screenshot.png

Is there any reason why the pool is not a required information marked with *:

screenshot.png

Thanks.

0 Kudos