Skip to content

Sn ap2024 instanescan 02 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ Restrict the number of row counts ma x to 10,20,50 instead of higher limits such
Navigate to the user preference <sys_user_preference> table and search by 'rowcount'. Set the value to 50 max.
Also, can set the property 'glide.ui.per_page' sys property value to 10, 20, 50 only

### Disable 'Ignore cache' checkbox for commonly accessed system Properties
Ignore Cache is a Glide Properties (records in the sys_properties table) field that impacts system performance. ‘ignore_cache’ is a way of avoiding database calls for commonly accessed property values. When it’s not handled carefully it can cause a system-wide cache flush leading to potentially severe performance degradation for anywhere from 5 to 30 minutes. In some very rare cases, the cache flush can even bring nodes down hard enough that the load balancer takes them offline, thus resulting in temporary session imbalance and causing hours of impact.

To prevent the cache flush for such system property, you can activate the Ignore cache i.e always select the ignore_cache checkbox. Almost always have 'ignore cache' set to "true" on 'sys_properties' records. Typically, you should only select the check box and enable ignoring the cache when you have a system property that changes more frequently than once a month, and the property value is only stored in the sys_properties table.

Ignore cache = True: An update or insert of a system property will rebuild ONLY for that particular sys_property cache (yes, it is not a full ignore).

## Category: Security
##Check Mandatory fields on incident
Expand Down
2 changes: 1 addition & 1 deletion ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CuNEYHj5RbBsjVJxohTMD1xntLLtuzW06YrIQxv_dnuv66Z-CP9Yyz94aT1y6VMee62ueoZ-zoVm79qzmSN0EDnNTIajGUE-L9E8z-wSmPjpDRK6unp5pT-WyQru961HXU1NDT6tYoVYpmHP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v8poZavzmCHq5jNy2XEhJ3q8foHo3USLJZujr6WOF0fjRz5TCiQxtS_40LcwS2ulTiJQJOABVZeXkJgShaEXY9LLbdTyDtivNMyoovjuIRxsKNEFC8A67Is3vXCDys6aw9TmxCqN7QZ90SsewyQ
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
<scan_table_check action="INSERT_OR_UPDATE">
<active>true</active>
<advanced>false</advanced>
<category>performance</category>
<conditions table="sys_properties">ignore_cache=true^EQ<item endquery="false" field="ignore_cache" goto="false" newquery="false" operator="=" or="false" value="true"/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
Comment on lines +6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't you want to have the instance scan resolve on the ones where the value is false to suggest moving to true?

</conditions>
<description>Ignore Cache is a Glide Properties (records in the sys_properties table) field that impacts system performance. ‘ignore_cache’ is a way of avoiding database calls for commonly accessed property values. When it’s not handled carefully it can cause a system-wide cache flush leading to potentially severe performance degradation for anywhere from 5 to 30 minutes. In some very rare cases, the cache flush can even bring nodes down hard enough that the load balancer takes them offline, thus resulting in temporary session imbalance and causing hours of impact.&#13;
&#13;
The system stores system property values in server-side caches to avoid querying the database for configuration settings.”&#13;
&#13;
When you change a system property value, the system always flushes the cache for the sys_properties table. Use this field to determine whether to flush this property's value from all other server-side caches.</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Ignore Cache : System Property</name>
<priority>2</priority>
<resolution_details>To prevent the cache flush in the future for the same system property, you can activate the Ignore cache i.e always select the ignore_cache checkbox. Almost always have 'ignore cache' set to "true" on 'sys_properties' records. Typically, you should only select the check box and enable ignoring the cache when you have a system property that changes more frequently than once a month, and the property value is only stored in the sys_properties table.&#13;
&#13;
Ignore cache = True: An update or insert of a system property will rebuild ONLY for that particular sys_property cache (yes, it is not a full ignore).&#13;
&#13;
Select the check box to ignore flushing some server-side caches, thus flushing only the cache for the sys_properties table and preserving the prior property value in all other caches. This option avoids the performance cost of flushing all caches and retrieving new property values.</resolution_details>
<run_condition/>
<score_max>100</score_max>
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function (engine) {

// Add your code here

})(engine);]]></script>
<short_description>Disable 'Ignore cache' checkbox for commonly accessed system Properties</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>a.pandey</sys_created_by>
<sys_created_on>2024-10-03 09:04:30</sys_created_on>
<sys_id>cfe622458301d2100283b955eeaad366</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Ignore Cache : System Property</sys_name>
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
<sys_policy/>
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
<sys_update_name>scan_table_check_cfe622458301d2100283b955eeaad366</sys_update_name>
<sys_updated_by>a.pandey</sys_updated_by>
<sys_updated_on>2024-10-03 09:04:30</sys_updated_on>
<table>sys_properties</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=cfe622458301d2100283b955eeaad366"/>
</record_update>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is unrelated

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
<scan_table_check action="INSERT_OR_UPDATE">
<active>true</active>
<advanced>false</advanced>
<category>performance</category>
<conditions table="sys_transform_map">run_business_rules!=true^EQ<item endquery="false" field="run_business_rules" goto="false" newquery="false" operator="!=" or="false" value="true"/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
</conditions>
<description>Business rules validation directly on fields in Transform Maps is generally not considered a best practice, and instead, it is recommended to leverage other methods like Field Map Scripts or onBefore Transform Scripts for handling field-level data manipulation.&#13;
Transform Maps usually deal with bulk data imports. Using business rules (which fire on each insert/update) during a data import can negatively impact performance, as business rules execute for every individual record transformation, which can slow down processing.</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Transform Map Run Business Rule</name>
<priority>3</priority>
<resolution_details>Disable “Run Business Rules”&#13;
&#13;
Unless needed, the “Run Business Rules” checkbox should be unchecked as Post import additional business logic may leads to run via existing business rules, but this can increase&#13;
import/processing times. &#13;
&#13;
Disabling this option will will stop the execution of the following and prevent the potential performance issue&#13;
– Business Rules&#13;
– Script engines (Approval Engine, Assignment rule Engine, Data policy Engine Field normalization Engine (CMDB), Role Engine, Execution Plan Engine, Workflow Engine, text Indexing Engine, Update Sync Engine(Update Set), Data Lookup Engine, Email notification)&#13;
– Auditing</resolution_details>
<run_condition/>
<score_max>100</score_max>
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function (engine) {

// Add your code here

})(engine);]]></script>
<short_description>Disable 'Run Business Rule' on Transform Map[sys_transform_map]</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>a.pandey</sys_created_by>
<sys_created_on>2024-10-03 08:17:34</sys_created_on>
<sys_id>f9f026c983cd92100283b955eeaad323</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Transform Map Run Business Rule</sys_name>
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
<sys_policy/>
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
<sys_update_name>scan_table_check_f9f026c983cd92100283b955eeaad323</sys_update_name>
<sys_updated_by>a.pandey</sys_updated_by>
<sys_updated_on>2024-10-03 08:17:34</sys_updated_on>
<table>sys_transform_map</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=f9f026c983cd92100283b955eeaad323"/>
</record_update>
Loading