From cce50f30474651f43f7cb1c8951f398887292b64 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Thu, 27 Apr 2017 13:47:43 -0400 Subject: [PATCH] bybusiness is the only load balancing method used --- lib/gems/pending/util/miq_apache/miq_apache.rb | 8 +------- spec/util/miq_apache/conf_spec.rb | 14 -------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/gems/pending/util/miq_apache/miq_apache.rb b/lib/gems/pending/util/miq_apache/miq_apache.rb index 619891a61..bf5ff4313 100644 --- a/lib/gems/pending/util/miq_apache/miq_apache.rb +++ b/lib/gems/pending/util/miq_apache/miq_apache.rb @@ -188,13 +188,7 @@ def self.install_default_config(opts = {}) end def self.create_balancer_config(opts = {}) - lbmethod = case opts[:lbmethod] - when :busy then :bybusyness - when :traffic then :bytraffic - else :byrequests - end - - "\n\n" + "\n\n" end def self.create_redirects_config(opts = {}) diff --git a/spec/util/miq_apache/conf_spec.rb b/spec/util/miq_apache/conf_spec.rb index 9678b58b9..fbec8c60a 100644 --- a/spec/util/miq_apache/conf_spec.rb +++ b/spec/util/miq_apache/conf_spec.rb @@ -10,20 +10,6 @@ end context "building balancer config" do - context "lbmethod" do - it "should return a config with lbmethod of 'byrequests' by default" do - expect(MiqApache::Conf.create_balancer_config).to include("lbmethod=byrequests") - end - - it "should return a config with lbmethod of 'bytraffic' if passed :traffic" do - expect(MiqApache::Conf.create_balancer_config(:lbmethod => :traffic)).to include("lbmethod=bytraffic") - end - - it "should return a config with lbmethod of 'bybusyness' if passed :busy" do - expect(MiqApache::Conf.create_balancer_config(:lbmethod => :busy)).to include("lbmethod=bybusyness") - end - end - it "should set cluster name" do expect(MiqApache::Conf.create_balancer_config(:cluster => 'evmcluster_ui')).to include("Proxy balancer://evmcluster_ui/") end