Menu

#1994 IMMSv: Finalized CCB are counted under Max Ccb Limit

5.1.RC1
fixed
None
defect
imm
nd
5.1 FC
major
2016-09-20
2016-09-01
No

setup:
Version - OpenSAF 5.1.FC : changeset - 7997
4-Node cluster
1PBE with 30K objects

  • Default maxCcb is configured to 10000 as in object opensafImm=opensafImm,safApp=safImmService
  • Try creating more than 10000 Ccb operations
for (( i = 1 ; i <=20000; i++))
   immcfg -c TestClass testClass=$i 

Above operation fails with ERR_NO_RESOURCE after the Ccb count for cluster reached 10000. Even when a max limit is reached; after few minutes more Ccbs are allowed. See the below syslog snippet

Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45008 COMMITTED (chaniTestClass)
Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45009 COMMITTED (chaniTestClass)
Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45010 COMMITTED (chaniTestClass)
Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45011 COMMITTED (chaniTestClass)
Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45012 COMMITTED (chaniTestClass)
Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO ERR_NO_RESOURCES: maximum Ccbs limit 20000 has been reached for the cluster
Sep 1 15:00:34 OSAF-SC1 syslog-ng[1194]: Log statistics; dropped='pipe(/dev/xconsole)=0', dropped='pipe(/dev/tty10)=0', processed='center(queued)=92951', processed='center(received)=47084',
processed='destination(messages)=47077', processed='destination(mailinfo)=7', processed='destination(mailwarn)=0', processed='destination(localmessages)=45786', processed='destination(newserr)=0', processed='destination(mailerr)=0', processed='destination(netmgm)=0', processed='destination(warn)=42', processed='destination(console)=16', processed='destination(null)=0', processed='destination(mail)=7', processed='destination(xconsole)=16', processed='destination(firewall)=0', processed='destination(acpid)=0', processed='destination(newscrit)=0', processed='destination(newsnotice)=0', processed='source(src)=47084'
Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45014 COMMITTED (chaniTestClass)
Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45015 COMMITTED (chaniTestClass)
Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45016 COMMITTED (chaniTestClass)
Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45017 COMMITTED (chaniTestClass)

Related

Tickets: #1994

Discussion

  • Zoran Milinkovic

    Counting active CCBs is not correct.

    For example:

        if(sCcbVector.size() > val){
            LOG_NO("ERR_NO_RESOURCES: maximum ccbs limit %d has been reched for the cluster",
                              val);
            err = SA_AIS_ERR_NO_RESOURCES;
            TRACE_LEAVE();
            return err;
        }
    

    sCcbVector.size() returns total amount of CCBs in IMM (finalized, non-finalized, vetoed, ...), and not only active CCBs.
    To get the correct value, there must be an iterator on sCcbVector and check every CCB if it's OK.

     
  • Neelakanta Reddy

    The Lmit is for MAX_CCBs , which include finalized, non-finalized,...
    The Limit is for the resources with in IMM and system. if you system has more resouces dyanmically increase the MAX_CCBs limit.

     
    • Zoran Milinkovic

      Hi Neelakanta,

      I'll review IMM requirements, and check if the limit is to all CCBs or only to open CCBs.

      Thanks,
      Zoran

      -----Original Message-----
      From: Neelakanta Reddy [mailto:neelakanta@users.sf.net]
      Sent: den 1 september 2016 14:50
      To: [opensaf:tickets]
      Subject: [opensaf:tickets] #1994 IMMSv: Finalized CCB are counted under Max Ccb Limit

      The Lmit is for MAX_CCBs , which include finalized, non-finalized,...
      The Limit is for the resources with in IMM and system. if you system has more resouces dyanmically increase the MAX_CCBs limit.


      ** [tickets:#1994] IMMSv: Finalized CCB are counted under Max Ccb Limit**

      Status: unassigned
      Milestone: 4.7.2
      Created: Thu Sep 01, 2016 12:32 PM UTC by Chani Srivastava Last Updated: Thu Sep 01, 2016 12:42 PM UTC
      Owner: nobody

      setup:
      Version - OpenSAF 5.1.FC : changeset - 7997 4-Node cluster 1PBE with 30K objects

      • Default maxCcb is configured to 10000 as in object opensafImm=opensafImm,safApp=safImmService
      • Try creating more than 10000 Ccb operations ~~~ for (( i = 1 ; i <=20000; i++))
        immcfg -c TestClass testClass=$i
        ~~~
        Above operation fails with ERR_NO_RESOURCE after the Ccb count for cluster reached 10000. Even when a max limit is reached; after few minutes more Ccbs are allowed. See the below syslog snippet

      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45008 COMMITTED (chaniTestClass)
      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45009 COMMITTED (chaniTestClass)
      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45010 COMMITTED (chaniTestClass)
      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45011 COMMITTED (chaniTestClass)
      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO Ccb 45012 COMMITTED (chaniTestClass)
      Sep 1 14:58:35 OSAF-SC1 osafimmnd[27298]: NO ERR_NO_RESOURCES: maximum Ccbs limit 20000 has been reached for the cluster
      Sep 1 15:00:34 OSAF-SC1 syslog-ng[1194]: Log statistics; dropped='pipe(/dev/xconsole)=0', dropped='pipe(/dev/tty10)=0', processed='center(queued)=92951', processed='center(received)=47084',
      processed='destination(messages)=47077', processed='destination(mailinfo)=7', processed='destination(mailwarn)=0', processed='destination(localmessages)=45786', processed='destination(newserr)=0', processed='destination(mailerr)=0', processed='destination(netmgm)=0', processed='destination(warn)=42', processed='destination(console)=16', processed='destination(null)=0', processed='destination(mail)=7', processed='destination(xconsole)=16', processed='destination(firewall)=0', processed='destination(acpid)=0', processed='destination(newscrit)=0', processed='destination(newsnotice)=0', processed='source(src)=47084'
      Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45014 COMMITTED (chaniTestClass)
      Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45015 COMMITTED (chaniTestClass)
      Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45016 COMMITTED (chaniTestClass)
      Sep 1 15:10:14 OSAF-SC1 osafimmnd[27298]: NO Ccb 45017 COMMITTED (chaniTestClass)


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/opensaf/tickets/1994/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #1994

  • Neelakanta Reddy

    • status: unassigned --> accepted
    • assigned_to: Neelakanta Reddy
    • Part: - --> nd
    • Milestone: 4.7.2 --> 5.1.RC1
     
  • Neelakanta Reddy

    The limit is considered only for active ccbs

     
  • Anders Widell

    Anders Widell - 2016-09-13
    • Milestone: 5.1.RC1 --> 5.1.RC2
     
  • Neelakanta Reddy

    • status: accepted --> review
    • Milestone: 5.1.RC2 --> 5.1.RC1
     
  • Neelakanta Reddy

    • status: review --> fixed
     
  • Neelakanta Reddy

    changeset: 8088:aa40d984dee1
    branch: opensaf-5.1.x
    parent: 8086:586c8af8cde5
    user: Neelakanta Reddy
    date: Fri Sep 16 11:54:52 2016 +0530
    summary: imm:consider Active ccbs for maxccbs limit [#1994]

    changeset: 8089:4cb5345507df
    tag: tip
    parent: 8087:07c1327009f9
    user: Neelakanta Reddy
    date: Fri Sep 16 11:54:52 2016 +0530
    summary: imm:consider Active ccbs for maxccbs limit [#1994]

     

    Related

    Tickets: #1994

  • Neelakanta Reddy

    • status: fixed --> accepted
     
  • Neelakanta Reddy

    To correct sTerminatedCcbcount more than ccbvector.size(), and adding assert

     
  • Neelakanta Reddy

    • status: accepted --> fixed
     
  • Neelakanta Reddy

    changeset: 8104:554cfde112e2
    branch: opensaf-5.1.x
    parent: 8102:1794ee4f2e48
    user: Neelakanta Reddy
    date: Tue Sep 20 14:42:00 2016 +0530
    summary: imm: ccbs that are not timed out are counted for TerminatedCcbcount[#1994]

    changeset: 8105:30138cd18adb
    tag: tip
    parent: 8103:aac8fd955b93
    user: Neelakanta Reddy
    date: Tue Sep 20 14:42:00 2016 +0530
    summary: imm: ccbs that are not timed out are counted for TerminatedCcbcount[#1994]

     

    Related

    Tickets: #1994


Log in to post a comment.

Auth0 Logo