<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CSS11000 - Configuring Maximum TCP Connections in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476121#M8929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunaly there is no way for the css to differentiate a server down from a server who reached maxconn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way would be to use a script keepalive for service2, that checks the status of service1.&lt;/P&gt;&lt;P&gt;If the number of conns reach the max, service2 would be taken down and the redirect service would kick in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If service1 crashes, service2 can take over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a script is not that much difficult to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2005 12:44:41 GMT</pubDate>
    <dc:creator>Gilles Dufour</dc:creator>
    <dc:date>2005-05-24T12:44:41Z</dc:date>
    <item>
      <title>CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476118#M8926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is a stupid question. But I'm going to ask it anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the max connection on a service can I redirect the connections that are over the max connection to an error page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or I'm I looking in the wrong place. I'll try to explain what I&amp;#146;m trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to protect my application servers, if my application servers reaches a certain threshold I want to redirect the connection to a error page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I tackle this problem.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2005 14:23:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476118#M8926</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-19T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476119#M8927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can have a redirect.&lt;/P&gt;&lt;P&gt;That's not a stupid thing to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A lot of people use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply configure your service with maxconn and create a redirect service that you can configure as a sorryserver under your content rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all services have reached maxconn, the redirect service will kick in and redirect all traffic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CCO search engine, you should be able to find sample config for the configuration of redirect service [let me know if you don't].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2005 12:49:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476119#M8927</guid>
      <dc:creator>Gilles Dufour</dc:creator>
      <dc:date>2005-05-20T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476120#M8928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; First of all I wanted to thank you for help.  Very kind of you to take time helping us.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Second of all I want to apologies for my first post.  I should have been clearer about the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our web servers connect to our backend vip.  Now the specific application doesn&amp;#146;t like being switched from one server to the other while in the same session.  We tried to solve this problem but we didn&amp;#146;t succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we gave up balancing that application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now we want to set a limit on how much connections can flow to that one application server. So the application server won&amp;#146;t give up under high load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the load goes above a certain value we want to display an error page. Something like sorry try again later.  But if server 1 crashes we want all connection goes to server 2.  We don&amp;#146;t want the connections to go to server 2 when the max of connections is reached.  Because than we want to see the error page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to create a redirect service to an url I got :&lt;/P&gt;&lt;P&gt;%% Cannot have a redirect service on a Layer 4 rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the redirect to an error page isn&amp;#146;t a real must.  More a nice to have. But what we would like is that the server2 only takes over if server1 is down and not when the max connections is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this is what I have by now. But now I&amp;#146;m a little bit stuck.  We noticed than if we are load testing the webserver thinks app1 is down because it reaches the max connections and goed to server two.  Witch we don&amp;#146;t want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; service geert &lt;/P&gt;&lt;P&gt;  type redirect &lt;/P&gt;&lt;P&gt;  keepalive type none &lt;/P&gt;&lt;P&gt;  redirect-string "www.cisco.com" &lt;/P&gt;&lt;P&gt;  active &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; service cisco_1 &lt;/P&gt;&lt;P&gt;  ip address xxx.xxx.xxx.xxx &lt;/P&gt;&lt;P&gt;  protocol tcp &lt;/P&gt;&lt;P&gt;  keepalive type tcp &lt;/P&gt;&lt;P&gt;  port xxxx &lt;/P&gt;&lt;P&gt;  keepalive port xxxx &lt;/P&gt;&lt;P&gt;  string 5 &lt;/P&gt;&lt;P&gt;  max connections 40 &lt;/P&gt;&lt;P&gt;  active &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;service cisco_2 &lt;/P&gt;&lt;P&gt;  ip address xxx.xxx.xxx.xxx &lt;/P&gt;&lt;P&gt;  protocol tcp &lt;/P&gt;&lt;P&gt;  keepalive type tcp &lt;/P&gt;&lt;P&gt;  port xxxx&lt;/P&gt;&lt;P&gt;  keepalive port xxxx &lt;/P&gt;&lt;P&gt;  string 5 &lt;/P&gt;&lt;P&gt;  max connections 40 &lt;/P&gt;&lt;P&gt;  active  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; content cisco &lt;/P&gt;&lt;P&gt;    protocol tcp &lt;/P&gt;&lt;P&gt;    port xxxx &lt;/P&gt;&lt;P&gt;    vip address xxx.xxx.xxx.xxx &lt;/P&gt;&lt;P&gt;    add service cisco_1 &lt;/P&gt;&lt;P&gt;    primarySorryServer cisco_2 &lt;/P&gt;&lt;P&gt;    flow-reset-reject &lt;/P&gt;&lt;P&gt;    active&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 08:59:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476120#M8928</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-24T08:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476121#M8929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunaly there is no way for the css to differentiate a server down from a server who reached maxconn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way would be to use a script keepalive for service2, that checks the status of service1.&lt;/P&gt;&lt;P&gt;If the number of conns reach the max, service2 would be taken down and the redirect service would kick in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If service1 crashes, service2 can take over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a script is not that much difficult to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 12:44:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476121#M8929</guid>
      <dc:creator>Gilles Dufour</dc:creator>
      <dc:date>2005-05-24T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476122#M8930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you very quick answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking through the Cisco Content Services Switch&lt;/P&gt;&lt;P&gt;Advanced Configuration guide as I'm typing this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tomorrow morning at work I'll try to learn some css scripting in a hurry.  You definetely pointed me in the right direction. Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a  small remark what is easy for a CCIE can be difficult for a CCNA &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 18:36:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476122#M8930</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-24T18:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476123#M8931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilles, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In worst case scenario I'm going to drop the app2 server and go directly to the error page as primary sorry service. And if needed manually failover to app2 untill I master css scripting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add service app1 - active&lt;/P&gt;&lt;P&gt;add service app2 - disable&lt;/P&gt;&lt;P&gt;primary sorry server redirect service&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed that this afternoon but than I got the error I stated a post or two ago.  But tomorrow I'll try this again with a fresh head and courage (and the manual by my side). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 19:14:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476123#M8931</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-24T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476124#M8932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to disturb you again but can you maybe tell me how I put the number of present connections of a service in a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2005 11:34:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476124#M8932</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-25T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476125#M8933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to do a 'sho service &lt;NAME&gt; | grep -u "Total Connections:"'&lt;/NAME&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line matching the grep will be place in a variable called ${UGREP}.&lt;/P&gt;&lt;P&gt;You can then extrace the value you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info at :&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-custom" href="http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a0080157804.html#1004331" target="_blank"&gt;http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a0080157804.html#1004331&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 13:25:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476125#M8933</guid>
      <dc:creator>Gilles Dufour</dc:creator>
      <dc:date>2005-05-26T13:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: CSS11000 - Configuring Maximum TCP Connections</title>
      <link>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476126#M8934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.  I really appreciate it.&lt;/P&gt;&lt;P&gt;I'm very satisfied about the response of this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the meantime I went through the manuals (RTFM &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) and after some try and error in the development environment I came to the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no echo&lt;/P&gt;&lt;P&gt;set CONTINUE_ON_ERROR "1"&lt;/P&gt;&lt;P&gt;set Status "0"&lt;/P&gt;&lt;P&gt;set UGREP "0"&lt;/P&gt;&lt;P&gt;show service XXXX | grep -u "State:"&lt;/P&gt;&lt;P&gt;set Status "${UGREP}[4]"&lt;/P&gt;&lt;P&gt;socket connect host xxx.xxx.xxx.xxx port xxxx tcp&lt;/P&gt;&lt;P&gt;set flag "${SOCKET}[*]"&lt;/P&gt;&lt;P&gt;if Status "==" "Alive" &lt;/P&gt;&lt;P&gt;        !service state DOWN&lt;/P&gt;&lt;P&gt;	exit script 1 &lt;/P&gt;&lt;P&gt;endbranch&lt;/P&gt;&lt;P&gt;if Status "NEQ" "Alive" &lt;/P&gt;&lt;P&gt;        if ${flag} "==" "char"&lt;/P&gt;&lt;P&gt;        	!service state DOWN&lt;/P&gt;&lt;P&gt;		exit script 1 &lt;/P&gt;&lt;P&gt;        endbranch&lt;/P&gt;&lt;P&gt;        if ${flag} "==" "int"&lt;/P&gt;&lt;P&gt;        	!service state ALIVE&lt;/P&gt;&lt;P&gt;		exit script 0&lt;/P&gt;&lt;P&gt;	endbranch&lt;/P&gt;&lt;P&gt;endbranch&lt;/P&gt;&lt;P&gt;no set CONTINUE_ON_ERROR&lt;/P&gt;&lt;P&gt;echo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I will post everything here later tomorrow.  Now I'm cleaning up over here and then going home. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Witch some new acquired knowdledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really thank you for the pointers they where very helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 17:15:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/css11000-configuring-maximum-tcp-connections/m-p/476126#M8934</guid>
      <dc:creator>Greenwolf</dc:creator>
      <dc:date>2005-05-26T17:15:42Z</dc:date>
    </item>
  </channel>
</rss>

