Presentation is loading. Please wait.

Presentation is loading. Please wait.

Loading data into CMDB - Best practices for the entire process

Similar presentations


Presentation on theme: "Loading data into CMDB - Best practices for the entire process"— Presentation transcript:

1 Loading data into CMDB - Best practices for the entire process
Shivraj Chavan Anand Ahire BMC Software

2 Agenda Why you should never do CMDB only project
Guidance on – ‘Should this be in the CMDB?’ The Life of a CI Various best practices Q&A

3 Typical Failed CMDB Project
“We need to have a CMDB” Why? … because Let’s load data into it What data? … whatever data we have laying around So, that took a long time! And the CMDB is big, out of date, and isn’t bringing any value See, I told you that CMDB thing was complex and useless hype Another big data store offering no value is obviously not the desire Avoid doing a CMDB only project

4 CONSUMERS vs. Providers
Although providers supply the data for the CMDB, the important players for the CMDB are really the consumers Consumers do interesting and useful things with the data Providers simply load data Without consumers – who cares what data is loaded In fact, if no one consumes the data, it shouldn’t be loaded

5 Have an XYZ project, that includes using the CMDB (for XYZ substitute – Incident, Change, Problem, …) We need to improve our Change Management process The CMDB is not an end in itself, it is an enabler for other processes You must have a goal and a focus for how you want to USE the CMDB Change Management needs to know about servers, applications, services, and their relationships If no one is consuming a piece of data, it should not be in the CMDB When in doubt, DO NOT put data into the CMDB until someone asks for it Look at the improvements in the Change Management process Failed changes and disruption to service because of change are down I can see how the CMDB makes Change Management better Let’s look at the Incident Management process; how can we improve? There will be many different XYZ projects that all increase content and use of that content in the CMDB The CMDB is a long journey; but there is incremental value at every step along the way

6 Choose your data sources wisely
 Good data providers do the following: Provides data for CDM classes you need to populate in the CMDB Provides data that is not already provided by a different data source Can populate attribute values which can uniquely identify CI Periodically updates data Periodically flags data as no longer present in the environment Indicates when the data was last updated Updates, maintains, and deletes relationships as well as CIs Manual Data entry: Example: Asset Sandbox in ITSM There are some classes we expect to populate manually, like Business Service CMDB provides context NOT content

7 Automated Discovery is a Requirement
Without automated discovery processes, data accuracy CANNOT be maintained Data is inaccurate before you can complete loading it

8 Value Path Atrium CMDB HighValue Incident, Problem, Change, Config
Services Atrium CMDB HighValue Applications Running Software Incident, Problem, Change, Config Virtual Layer: Virtual Machines Less Value Physical Layer: Servers, Network Devices = CI, CI Attributes, CI Relationships Auto maintained by likes of ADDM in Atrium CMDB = CI = CI, CI Attributes, CI Relationships Maintained by Atrium CMDB = Relationship

9 The Life of a CI Only load data that you need!
Extract Transform Load Cleanse and Reconcile Consume Only load data that you need! Define dataset per provider Have different plan for Initial vs delta loads Run multiple copies of key steps like CMDBOutput step in spoon Think about error handling especially for custom jobs Atrium CMDB ADDM ADDM Dataset CIs MS SCCM Atrium Integrator SCCM Dataset . CIs Any Data Source IMPORT Dataset CIs

10 The Life of a CI Normalize before you Identify
Extract Transform Load Cleanse and Reconcile Consume Normalize before you Identify Don’t normalize all classes Batch mode – initial or large data, Continuous – steady state Use Impact Normalization for Change Mgmt or BPPM Use Suite Rollup / Version rollup for SWLM Always use Reconciliation, even for a single source Keep your data clean, normalized, and identified Use qualifications to filter data Use Standard Identification and Merge Rules Put your most specific identification rule first Atrium CMDB Product Catalog N O R M A L I Z T ADDM Dataset R E C O N I L A T CIs SCCM Dataset . Production Dataset CIs IMPORT Dataset CIs

11 The Life of a CI Do not modify data in production dataset directly.
Extract Transform Load Cleanse and Reconcile Consume Do not modify data in production dataset directly. Always use sandbox datasets for manual changes If no one consumes the data, it shouldn’t be loaded Periodically check for duplicates and take remediation action Atrium CMDB ITSM SIM ITBM Production Dataset Dashboards . BPPM

12 The Life of a CI . Extract Transform Load Cleanse and Reconcile
Consume Atrium CMDB Product Catalog ADDM N O R M A L I Z T ADDM Dataset ITSM R E C O N I L A T CIs CIs SIM MS SCCM Atrium Integrator SCCM Dataset ITBM . . Production Dataset CIs CIs Dashboards . Any Data Source IMPORT Dataset CIs CIs BPPM

13 Normalization and Reconciliation example
Data Source 1 Host Name: John Smith Laptop Model: Apple MacBook Pro 15" Software: Microsoft Word Version: 2004 Normalized Data Host Name: John Smith Laptop Model: MB134B/A Software: MSWord Version: 2004 Host Name: John Smith Laptop Model: Apple MacBook Pro 15“ Software: Microsoft Word Version: Reconciled Data Database Web Services Data Source 2 Host Name: John Smith Laptop Model: Apple MacBook Pro 15" Software: Microsoft Word Version: Host Name: John Smith Laptop Model: Apple MacBook Pro 15" Software: MSWD Version: Atrium CMDB Production Dataset How does Normalization Engine collaborate with Reconciliation Engine? We talked about how the objective of Reconciliation is to get clean, quality data into your production dataset, Normalization provides two key features that also work to that end: First, it improves the quality and the consistency of the data. And second, it reviews the data before being Identified and Merged, thus allowing us to focus our reconciliation efforts only on Normalized data. In the example we can see that our Data Source number one has discovered our software as MSWord, while our data source number two has discovered it as MSWD. Through normalization we are making it consistent <<click>>, and now our normalized data look not only correct, but also the same on both sources: Microsoft Word. This makes our data more accurate and usable. Finally <<click>> we can see how the information from the Source one and Source two were combined into a single record. The stars here indicate precedence. So our source one, has a higher precedence over our source two, for both Host Name and Model. The Source Two, instead, has higher precedence for Software and Version. Reconciliation uses those precedence values, and combines the information into a single record.

14 Performance considerations
Establish an Integration Server In many cases when performance is an issue, poor database configuration and / or indexing is the cause Consider indexing attributes used in Identification rules Check query plans, review and correct them Are DB backups happening when Reconciliation jobs are running? Use qualifications whenever possible to filter your data “Fine tune” thread settings and use Private Queue Let’s talk about some other performance considerations: DB Tweaks specific to a customer environment. There is no Magic Potion here. DB Administrators need to identify long running queries. Is an index required or would it be beneficial to add one? We have many customers who complain about performance not being ideal. And in almost 90% of the cases, the performance issue was found in bad DB configuration, or bad indexing. Consider indexing attributes used in Identification rules. This will improve the performance of the Identify activity. Check query plans, review and correct. Are DB backups happening when Reconciliation jobs are running? All this needs to be considered, and maintenance needs to occur often. Establish an Integration Server If you have the possibility of having a server group. Dedicate one of these server to integration activities. That means, all your data loading tools (like AI/AIE/ADDM sync) will point to this server, and normalization and reconciliation should run primarily on this server too. In this way your users will have reduced impact from the resources used by these processes. Do not run Normalization or AIE/AI jobs at the same time. // May be removed? All processes use many resources. Resource sharing may impact the performance of all these jobs. On the other hand, all of these tools work directly on the CMDB data, and it’s datasets. If jobs are working on the same data DB locks may also delay the processing of the CIs, making the jobs last longer. Loading, normalizing and reconciling are best run in sequence and during non-working hours. Keep your data clean Unresolved errors impact subsequent jobs also. The CIs that fail to reconcile will be retried on each subsequent job. I’ve seen jobs taking 1 hour to process 2 Cis. All the rest of the processing was spent on previous failed Cis. So the question is: How is my data getting dirty and how do I prevent that? Is your data getting properly identified? Do you need to change an identification rule or add a new one? Ask yourself if you are running a proper normalization job and if the Product Catalog definitions are correct and up to date? Make sure Reconciliation is only bringing in Normalized CIs. Also run purge jobs weekly to remove old deleted data from the systems, that will lower the CI count, improving the performance of the whole CMDB. Use qualifications when possible Use them on your Identifications activities and use them on your merge activities. We worked on one environment where the Product Class had 4 million CIs. But the customer was not interested in this class at all. We removed that class by restricting our reconciliation through qualifications, and we improved the running time of the job by 400%. So remember to always look for good filtering opportunities. Understand your environment and what is needed, and then work to get that data only. That will make the jobs run faster and at the same time you will have a much cleaner and more concise Production data. Merge Algorithms When performance is a concern, set the Merge Order to “By class in separate transactions”, which is the fastest processing option. If the job must run during production hours, you instead can use the “Related CIs in separate transactions” option, which commits things like computer systems and their related components in one atomic transaction. That means a CI and all it’s relationships and childs will be moved at the same time. This is slower but safer. “Fine tune” Threads # and/or use the Private Queue when appropriate -> Demo on next slide. As we mentioned before RE uses many resources. Those resources include your Remedy Server threads. If the thread count is set too low, the AR System server will have low CPU use, poor throughput, and potentially poor response time under high loads. On the other hand, defining too many threads may result in unnecessary thread administration. Suggested thread counts are three times the number of CPUs for the fast queue and five times the number of CPUs for the list queue. So a two-CPU box might have six threads for fast and ten threads for list. Is there a limit? Well, the recommended maximum for any thread pool is never greater than 30., but note that these are suggestions, and as such they should serve as a good initial starting point. Since there are so many variables: different hardware, cpu architecture, cpu speed, etc., we highly recommend you to benchmark your environment to figure out optimum settings. Besides properly tuning the threads, we may run into the issue, especially in low-end servers, where running a Reconciliation job impacts the user perception of the Remedy System responses. The reason for this is because our Reconciliation job, or jobs, could be using all available threads, causing end-user requests to wait on queue for a longer than normal amount of time. In order to prevent this situation we have the possibility of setting up a private queue for our Reconciliation requests, thus freeing the Fast and List queue, and making them once again available for end-users. Following is a Demo on how to configure the Private Queue for Reconciliation Engine.

15 Summary Don’t do standalone CMDB project, CMDB is a means to ends
Approach CMDB project from consumer side not provider Don’t boil the ocean Start small, prove value and iterate but there is incremental value at every step along the way Normalize before you reconcile Always reconcile and use sandbox for manual editing Service orientation is where real value lies; model services NOW

16 Principal Product Manager – Atrium Core
Q & A Anand Ahire Principal Product Manager – Atrium Core

17 You are Allowed to Extend the CDM – BUT DON’T
Do EVERYTHING possible to design using the CMDB default data model There is a mapping paper on the web site to help with mapping decisions https://communities.bmc.com/docs/DOC-16471 If there is a request to extend, really evaluate whether there is really no existing class that it would be appropriate to map things into If you do extend the model, make sure you follow best practices Model for the CONSUMER not the provider Add as few extensions as possible Consider that not all consumers can see a new class

18 References Hardware Requirements and Sizing – Documentation
Best Practices for CMDB Design & Architecture – Webinar What CIs should I push into my CMDB? – Documentation Understanding Atrium Integrator – Webinar Understanding Normalization and the Product Catalog – Webinar Importing custom Product Catalog data – Documentation Understanding Reconciliation – Webinar Common Data Model and mapping data to CMDB – Documentation Fine tuning ARS for CMDB applications like NE, RE, etc. – KA https://docs.bmc.com/docs/display/public/ac81/Investigating+CM DB+Data+Issues


Download ppt "Loading data into CMDB - Best practices for the entire process"

Similar presentations


Ads by Google