Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-6014

Connection Pooling in SQL server XA data source

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • None
    • None
    • None

      We are implementing connection pooling in the case of XA data source Sql Server.

       

      As per our understanding of the connection pooling mechanism in the teiid, we are referring below parameter in the Teiid Admin console.

      Below are the parameters mentioned in the Data Source Metrics

      i) Available count

      ii) Active count

      iii) Max used

       

      While deploying the XA data source for SQL server, we have configured the min pool size = 4 and max pool size = 8 and below are our understanding and how ideally it should work if we have implemented the connection pooling. (Please correct our observation)

      1. Initially 4 connection threads will be active.
      2. Whenever we are going to use these connections one by one Available count will decrement.
      3. When all 8 connections will have used up, we will wait till connection available back to pool.

       

      Below are the actual observations.

      1. No changes identified on Admin console.
      2. On DB level threads are increasing irrespective of max pool size.
      3. connections are increasing till 12 connections even though max size is 8

       

      Could you please shed more light on below points:

      1. How SQL server XA datasource connection pooling is working.
      2. In case of My sql XA datasource its working as expected.

      Attaching screenshot for Admin console statistics and DB level thread status.

      Please let us know are we missing any configuration.

            rhn-engineering-shawkins Steven Hawkins
            manoj1492 Manoj Majumdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: