Shilen Patel Duke University This work licensed under a Creative Commons AttributionNonCommercial 30 Unported License Pruning Old Data Grouper Diagnostics Grouper Report Bad Membership Finder ID: 604006
Download Presentation The PPT/PDF document "Grouper Maintenance" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Grouper Maintenance
Shilen PatelDuke University
This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.Slide2
Pruning Old DataGrouper DiagnosticsGrouper Report
Bad Membership FinderUnresolvable Subject Deletion UtilityLoggingAdding Loader Jobs
Helping Developers and Architects
2
ContentsSlide3
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)
3
Pruning Old DataSlide4
Pruning user auditDelete directly
from table: grouper_audit_entrycreated_on column is milliseconds from epoch.
Time based pruning: delete from grouper_audit_entry where
created_on
< '
1325376000000'
4
Pruning Old Data (continued)Slide5
Pruning point in time auditTables 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 dategsh 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)5
Pruning Old Data (continued)Slide6
Pruning change logConfigured in grouper-
loader.propertiesProperty: loader.retain.db.change_log_entry.days=14
Pruning daemon logsConfigured in grouper-loader.propertiesProperty:
loader.retain.db.logs.days
=7
6
Pruning Old Data (continued)Slide7
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
7
Grouper DiagnosticsSlide8
Configured in grouper-loader.properties
Primary properties:daily.report.quartz.cron = 0 0 7 * * ?daily.report.emailTo
= email@domain.edudaily.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_time desc
8Grouper ReportSlide9
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
9
Bad Membership FinderSlide10
Finds and optionally deletes memberships and privileges for unresolvable subjects.https://spaces.internet2.edu/display/Grouper/
Unresolvable+Subject+Deletion+Utility+(USDU
)
10
Unresolvable Subject Deletion
Utility (USDU)Slide11
Monitoring for errors (for instance in the UI)Example:
https://spaces.internet2.edu/display/Grouper/Ongoing+Administration+Tasks
11LoggingSlide12
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.
12
Adding Loader JobsSlide13
Granting access and delegating.Helping with design.
Helping with visibility into namespace they are not allowed to access.13
Helping Developers and ArchitectsSlide14
Click on the quiz link in the video description to reinforce your knowledge of this topic.
14
QuizSlide15
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.
15Slide16
Next Video in Grouper Online Training is:
Grouper Advanced Topics
This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.