<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:23:54 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-2874] SPIKE: investigate instrumentation performance overhead</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2874</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;PTF has reported 2x CPU load overhead when instrumentation in Okapi is enabled.&lt;/p&gt;

&lt;p&gt;Please investigate what can be done to limit the overhead:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;analyze the metrics calculating code to check if there is any potential to  improve the calculation. See if the metrics can be moved out of tight inner loops&lt;/li&gt;
	&lt;li&gt;experiment with Micrometer configuration to see if we can decrease the impact on CPU usage e.g by having a wider window for timers, disabling unwanted timers, etc&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="81942">FOLIO-2874</key>
            <summary>SPIKE: investigate instrumentation performance overhead</summary>
                <type id="10003" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium">Task</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="557058:4f6bed01-40a6-48d5-8471-7ef21f5ea97c">Hongwei Ji</assignee>
                                                                <reporter accountid="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d">Jakub Skoczen</reporter>
                                    <labels>
                            <label>R1</label>
                            <label>platform-backlog</label>
                            <label>platform-core</label>
                    </labels>
                <created>Mon, 16 Nov 2020 14:32:54 +0000</created>
                <updated>Thu, 21 Jan 2021 08:10:07 +0000</updated>
                            <resolved>Wed, 25 Nov 2020 14:11:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="197664" author="557058:4f6bed01-40a6-48d5-8471-7ef21f5ea97c" created="Wed, 25 Nov 2020 13:52:57 +0000"  >&lt;p&gt;To see the impact of enabling metrics, I created a separate env and tested it with PTF data and tests. The CloudWatch CPU metrics for Okapi can be seen in attached screenshots.  &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;64327_thumb&quot; href=&quot;/rest/api/3/attachment/content/64327&quot; title=&quot;okapi-4.3.3.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;64327&quot; file-preview-title=&quot;okapi-4.3.3.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64327?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64327&quot; filename=&quot;okapi-4.3.3.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64327&quot; data-attachment-name=&quot;okapi-4.3.3.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;91e28a47-f4ce-48eb-b2fe-47f251fa9f9a&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt;  &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;64328_thumb&quot; href=&quot;/rest/api/3/attachment/content/64328&quot; title=&quot;okapi-4.4.0.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;64328&quot; file-preview-title=&quot;okapi-4.4.0.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64328?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64328&quot; filename=&quot;okapi-4.4.0.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/64328&quot; data-attachment-name=&quot;okapi-4.4.0.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;04f5f5e4-b847-49ed-b90d-112683abfc3f&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;br/&gt;
The left side has metrics disabled and the right side has metrics enabled. The single spike in between was from Okapi restart after enabling metrics.  In summary, for Okapi 4.3.3, there is about 20-30% CPU overhead, and Okapi 4.4.0 has less than 20%. Note, some metrics measurements were removed in Okapi 4.4.0. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="64327" name="okapi-4.3.3.png" size="101566" author="557058:4f6bed01-40a6-48d5-8471-7ef21f5ea97c" created="Wed, 25 Nov 2020 13:51:45 +0000"/>
                            <attachment id="64328" name="okapi-4.4.0.png" size="93732" author="557058:4f6bed01-40a6-48d5-8471-7ef21f5ea97c" created="Wed, 25 Nov 2020 13:51:46 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i020kb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10046" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Release</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10033"><![CDATA[R1 2021]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1608">CP: sprint 102</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 25 Nov 2020 13:52:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>