Hana Daily Monitoring Template

7
Generated by Jive on 2014-06-08+02:00 1 SAP HANA and In-Memory Computing: HANA Daily Monitoring Template Posted by singh vinay Apr 5, 2014 The below blog intend to help HANA admin to have a sample template that they can use for monitoring there HANA environment on pro- active basis. you all are invited to add you comments if you feel we should include some more steps in the template . Its intention is monitoring not resolution , each issue reported can be resolved separately .You can use this template also as pointer for what all should be monitor if you are monitoring you SAP HANA landscape via SAP Solution Manager. 1. Check first if all the services are running fine :-  2.Run Unique checker (you can schedule it in you crontab also ,so as to get updates automatically in your mail box.  This program helps you to find duplicate entries in tables . Reach out to SAP to get the program or refer to https://help.sap.com/hana/SAP_HANA_Administration_Guide_en.pdf if you do not have it.  3.Check for CRASH dumps if Any :-  

description

Hana Daily Monitoring Template

Transcript of Hana Daily Monitoring Template

  • Generated by Jive on 2014-06-08+02:001

    SAP HANA and In-Memory Computing:HANA Daily Monitoring Template

    Posted by singh vinay Apr 5, 2014

    The below blog intend to help HANA admin tohave a sample template that they can use formonitoring there HANA environment on pro-active basis.you all are invited to add you comments if you feel we should include some more steps in the template . Itsintention is monitoring not resolution , each issue reported can be resolved separately .You can use thistemplate also as pointer for what all should be monitor if you are monitoring you SAP HANA landscape via SAPSolution Manager.

    1. Check first if all the services are running fine :-

    2.Run Unique checker (you can schedule it in you crontab also ,so as to get updates automatically in yourmail box.

    This program helps you to find duplicate entries in tables . Reach out to SAP to get the program or referto https://help.sap.com/hana/SAP_HANA_Administration_Guide_en.pdf if you do not have it.

    3.Check for CRASH dumps if Any :-

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:002

    check it on admin console -->Performance -->to see the dumps (OOM dumps as well) give the serach text as"dump"

    if you find any crash dump -->analyze if its because of any query -->notify the query owner to optimize it incase if its causing dumps.

    4. check SLT - if any table has error status

    No error so all is good.

    5. Check LTR as well :

    Also check the traditional T-codes ST22 and SM21 , it should not have any critical dumps .

    6. clean up the garbage memory:-

    frequency could be everyday or once in 3 days you can decide after seeing the pattern :

    execute mm gc -f

    It triggers the garbage collector and without unloading the tables it free up memory .

    Remark - to execute mm gc -f you need to log in HANA server --> HDBAdmin.sh-->Services-->console -->select the node --> execute the command.

    7. Validate Backup - Successful backup taken on **/**/** . Next Back Up on **/**/**.

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:003

    Analyze if the backup failed and take action accordingly .

    Hope this template helps you to keep you HANA environment healthy and running . Happy Monitoring .

    Please add any step you feel should be part of daily monitoring task .1597 Views Tags: hana, monitoring

    vivek kapoorMay 30, 2014 11:36 PMThanks VInay it is very nice doc

    Andy SilveyMay 14, 2014 9:33 AMHi Vinay,

    there's a useful OSS Note on which compliments this blog and subject:

    1977584 - Technical Consistency Checks for SAP HANA Databases

    Best regards,

    Andy.

    Justin Molenaur in response to Lars Breddemann on page 3May 5, 2014 7:28 PMThanks Lars. I guess the main thing I wanted to know is if the so called garbage (if left piled up the alley),would affect performance globally or if it would be on an object by object basis.

    Regards,Justin

    Lars Breddemann in response to Justin Molenaur on page 4May 5, 2014 9:39 AMHi Justin

    sorry, too few details here to even make an educated guess."Garbage" data is all data we don't need any more. This includes old versions of data that once were current aswell as temporary data and so forth.The garbage collection works allocator and virtual file wise. E.g. LOB columns have their own separatememory handling.All this happens automatically and typically no user interaction is required.

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:004

    - Lars

    Lars Breddemann in response to Justin Molenaur on page 4May 5, 2014 9:36 AMHi Justin

    Corruption in data structures can be experienced in all sorts of ways: wrong data, no error message wrong data and error messages error messages system crashes

    For most cases SAP HANA should be able to figure out a corruption by itself and also "repair" the corrupteddata by re-reading the last saved state from disk and re-applying all changes performed since (apply redo log).

    - Lars

    George VargheseMay 4, 2014 12:55 PMthanks Vinay .....very helpful info

    Justin Molenaur in response to Lars Breddemann on page 6Apr 29, 2014 4:26 PMLars - to my other point - how can you really observe table corruption?

    Regards,Justin

    Justin Molenaur in response to Lars Breddemann on page 7Apr 29, 2014 4:03 PMHi Lars/Vinay, I am just curious as to the garbage collector function. I searched all help documents and SCNand can't really find any documents that describe this in more detail. Does this "garbage" affect HANA globallyor only specific tables? In what cases is "garbage" created?

    Reason I am interested is that I was involved in a scenario last week where the performance on a few selecttables degraded to a horrendous amount, whereas all other tables in the system were performing optimally.Even a SELECT COUNT(*) on the affected tables were taking upwards of 1 minute on 250 million records,where the same query on a 1.5 billion row table was 250ms. On checking the merge, column optimization,system load and all the "normal" methods to see what may be affecting performance I came up empty handedwith no explanation. Miraculously at some later point, the specific tables starting performing normally, again -no action or explanation.

    I am wondering if garbage collection could be an explanation or if there are other underlying "corruption"indicators to check for on specific tables.

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:005

    Regards,Justin

    Kartik KumarApr 29, 2014 2:42 PMHello Vinay,

    Very nice article. Thanks.

    Need your help on one issue,

    following point 2, I have scheduled unique checker in crontab in HANA server with sidadm user, but script failswith below error:

    Traceback (most recent call last): File "uniqueChecker.py", line 8, in from hdbcli import dbapi File "/HANA/sapmnt//exe/linuxx86_64/HDB_1.00.53.375657_1048054/python_support/hdbcli/dbapi.py",line 15, in import pyhdbcliImportError: No module named pyhdbcli.

    However, I am able to run Unique checker manually on the server.

    Srinivasan VinayagamApr 22, 2014 2:15 PMDear Vinay,

    Very Nice info...Thank You....Kindly keep more blogs.

    Regards,V Srinivasan

    Nidhi AgrawalApr 20, 2014 8:57 AMnice Article

    singh vinay in response to Randy Middleton on page 6Apr 10, 2014 3:45 PMthanks Randy,

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:006

    for reading and liking it .

    regards,

    vinaysingh

    Randy MiddletonApr 9, 2014 9:09 PMNice Article. Thanks a lot. I will follow the script as stated. Until I can learn better.This is good as a base line to start.Thanks again.

    Jinsu JungApr 8, 2014 6:13 AMThanks

    singh vinay in response to Lars Breddemann on page 6Apr 8, 2014 6:09 AMHi Lars,

    Thanks for the valuable input,we are in process of doing the same ( as recommended by AGS to us) .

    will update how it does after the Hardware upgrade.

    regards,vinay singh

    Jake Echanove in response to Lars Breddemann on page 7Apr 7, 2014 11:25 PMI'ver added hdbbackupcheck to my backup script. No substitute for actually restoring on another instance, butverifies consistency.

    1869119 - Checking backups using hdbbackupcheck

    Lars Breddemann in response to singh vinay on page 6Apr 7, 2014 9:55 PMSingh,

    when you see frequent table corruption, you don't need the uniqueChecker. You need new hardware (orupgrade to a newer revision...)

    - Lars

    Saeed Ramadan AminApr 7, 2014 12:45 PMnice article

  • SAP HANA and In-Memory Computing: HANA Daily Monitoring Template

    Generated by Jive on 2014-06-08+02:007

    singh vinay in response to Lars Breddemann on page 7Apr 7, 2014 11:37 AMhi Lards,

    thanks for the input.

    i agree with you these two take lot of toll and time, so it should not be ran everyday.

    But as said (in my case also ) it depends upon your requirement especially for unique checker . If you seefrequent table corruption , so give filter on that particular table/s and run for it only rather than running for alltable.

    regards,vinaysingh

    Lars BreddemannApr 7, 2014 11:07 AMHi there!Nice blog and thanks for sharing.Few comments:Point 2 (uniquechecker) and 6 (garbage cleanup) are definitively not required nor recommended to run on adaily basis.Also, HDBAdmin is not supported for any use outside SAP HANA development.

    Concerning the validate backup: full agreement, the backups need to be checked.But simply checking if they ran without error doesn't cut it.To actually validate backups a recovery on a separate instance is necessary - otherwise you never know if youcould actually perform the recovery.

    - Lars