1 / 16

Grouper Maintenance

Grouper Maintenance. Shilen Patel Duke University. This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. Contents. Pruning Old Data Grouper Diagnostics Grouper Report Bad Membership Finder Unresolvable Subject Deletion Utility Logging

jadzia
Download Presentation

Grouper Maintenance

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Grouper Maintenance Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

  2. Contents Pruning Old Data Grouper Diagnostics Grouper Report Bad Membership Finder Unresolvable Subject Deletion Utility Logging Adding Loader Jobs Helping Developers and Architects

  3. Pruning Old Data • Pruning unused folders • Old application groups, former courses, etc. • GSH Command: obliterateStem(stem name, testOnlyBoolean, deleteFromPointInTimeBoolean)  • Example: • Check: obliterateStem(“duke:appTest1”, true, false) • Delete: obliterateStem(“duke:appTest1”, false, false) • Optionally delete from PIT after change log daemon runs: obliterateStem(“duke:appTest1”, false, true)

  4. Pruning Old Data (continued) • Pruning user audit • Delete directly from table: grouper_audit_entry • created_on column is milliseconds from epoch. • Time based pruning: delete from grouper_audit_entry where created_on < '1325376000000'

  5. Pruning Old Data (continued) • Pruning point in time audit • Tables that start with “grouper_pit_”. • Delete PIT log data for objects that have been deleted and processed by the change log. • Examples: gsh 0% // delete objects that ended before a given date gsh 0% edu.internet2.middleware.grouper.pit.PITUtils.deleteInactiveRecords(new Date(), true); gsh 1% gsh 2% // delete objects that have ended below a given stem gsh 2% edu.internet2.middleware.grouper.pit.PITUtils.deleteInactiveObjectsInStem("test", true)

  6. Pruning Old Data (continued) • Pruning change log • Configured in grouper-loader.properties • Property: loader.retain.db.change_log_entry.days=14 • Pruning daemon logs • Configured in grouper-loader.properties • Property: loader.retain.db.logs.days=7

  7. Grouper Diagnostics Health of Grouper reported via Grouper WS. Checks memory, various connections, and daemon jobs. Returns HTTP code 200 if everything is okay. Otherwise returns HTTP code 500. https://spaces.internet2.edu/display/Grouper/Grouper+diagnostics

  8. Grouper Report • Configured in grouper-loader.properties • Primary properties: daily.report.quartz.cron = 0 0 7 * * ? daily.report.emailTo = email@domain.edu daily.report.saveInDirectory = /home/grouper/reports/ • Provides basic information about your Grouper install. • Reports unresolvable subjects, bad memberships, and jobs with errors. • Query database for details on a job failure: select * from grouper_loader_log where status <> 'SUCCESS' order by started_timedesc

  9. Bad Membership Finder Performs various checks for bad memberships and group sets. Produces GSH script to fix issues https://spaces.internet2.edu/display/Grouper/Bad+Membership+Finder+Utility

  10. Unresolvable Subject Deletion Utility (USDU) Finds and optionally deletes memberships and privileges for unresolvable subjects. https://spaces.internet2.edu/display/Grouper/Unresolvable+Subject+Deletion+Utility+(USDU)

  11. Logging Monitoring for errors (for instance in the UI) Example: https://spaces.internet2.edu/display/Grouper/Ongoing+Administration+Tasks

  12. Adding Loader Jobs By default, only admins can add loader jobs. You can add them using the Admin UI, Web Services, or GSH. New loader jobs require the daemon to be restarted.

  13. Helping Developers and Architects Granting access and delegating. Helping with design. Helping with visibility into namespace they are not allowed to access.

  14. Quiz Click on the quiz link in the video description to reinforce your knowledge of this topic.

  15. Thanks! • Further information: • Infosheets, mailing lists, wiki, downloads, etc.:www.internet2.edu/grouper • Grouper demo server:grouperdemo.internet2.edu/ • Grouper Online Training Home:spaces.internet2.edu/x/IIGfAQ This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

  16. Next Video in Grouper Online Training is: Grouper Advanced Topics This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

More Related