Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-45298

Add Data Regions for Ignite setting some reasonable limits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.0, 22.0 [Tentative]
    • Fix Version/s: 22.0 [Tentative]
    • Component/s: Kernel
    • Labels:
    • 21 Status:
      Please Merge
    • Test Plan:
      Hide

      In a running Sakai:

      1. Open ignite's visor command to the sakai instance
      2. issue the detailed node query
      3. the output should look like, verify both regions exist

       

      {{}}

      Data region metrics: +=============================================================================================================================+ | Name | Page size | Pages | Memory | Rates | Checkpoint buffer | Large entries | +=============================================================================================================================+ | hibernate_l2_region | 0 | Total: 46195 | Total: 182mb | Allocation: 0.00 | Pages: 0 | 0.00% | | | | Dirty: 0 | In RAM: 182mb | Eviction: 0.00 | Size: 0 | | | | | Memory: 46195 | | Replace: 0.00 | | | | | | Fill factor: 0.00% | | | | | +---------------------+-----------+--------------------+---------------+------------------+-------------------+---------------+ | spring_region | 0 | Total: 0 | Total: 0 | Allocation: 0.00 | Pages: 0 | 0.00% | | | | Dirty: 0 | In RAM: 0 | Eviction: 0.00 | Size: 0 | | | | | Memory: 0 | | Replace: 0.00 | | | | | | Fill factor: 0.00% | | | | | +---------------------+-----------+--------------------+---------------+------------------+-------------------+---------------+ 

      {{}}

      Show
      In a running Sakai: Open ignite's visor command to the sakai instance issue the detailed node query the output should look like, verify both regions exist   {{}} Data region metrics: +=============================================================================================================================+ | Name | Page size | Pages | Memory | Rates | Checkpoint buffer | Large entries | +=============================================================================================================================+ | hibernate_l2_region | 0 | Total: 46195 | Total: 182mb | Allocation: 0.00 | Pages: 0 | 0.00% | | | | Dirty: 0 | In RAM: 182mb | Eviction: 0.00 | Size: 0 | | | | | Memory: 46195 | | Replace: 0.00 | | | | | | Fill factor: 0.00% | | | | | +---------------------+-----------+--------------------+---------------+------------------+-------------------+---------------+ | spring_region | 0 | Total: 0 | Total: 0 | Allocation: 0.00 | Pages: 0 | 0.00% | | | | Dirty: 0 | In RAM: 0 | Eviction: 0.00 | Size: 0 | | | | | Memory: 0 | | Replace: 0.00 | | | | | | Fill factor: 0.00% | | | | | +---------------------+-----------+--------------------+---------------+------------------+-------------------+---------------+ {{}}

      Description

      Ignite uses off heap memory and the default is to grow endlessly.

      There are environments where this would likely not be ideal.

      So we will create 2 Data regions one for hibernate l2 and the other for spring.

      Default OTB configs will be

      <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
       <property name="name" value="spring_region"/>
       <property name="initialSize" value="#{10 * 1024 * 1024}"/>
       <property name="maxSize" value="#{100 * 1024 * 1024}"/>
       <property name="pageEvictionMode" value="RANDOM_2_LRU"/>
       <property name="persistenceEnabled" value="false"/>
       <property name="metricsEnabled" value="false"/>
      </bean>
      <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
       <property name="name" value="hibernate_l2_region"/>
       <property name="initialSize" value="#{300 * 1024 * 1024}"/>
       <property name="maxSize" value="#{600 * 1024 * 1024}"/>
       <property name="pageEvictionMode" value="RANDOM_2_LRU"/>
       <property name="persistenceEnabled" value="false"/>
       <property name="metricsEnabled" value="false"/>
      </bean>

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ern Earle R Nietzel
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration