Tuning Sakai for Large Production Systems: Hints and Tricks Raúl Mengod Universidad Politécnica de Valencia (Spain)

Slides:



Advertisements
Similar presentations
In Production Juan Marin. Agenda Introduction Reliability Availability Performance Data optimizations Runtime optimizations Measuring your environment.
Advertisements

XIr2 Recommended Performance Tuning Andy Erthal BI Practice Manager.
Enhancing Application Performance Root Causes and Quick Solutions.
Refeng Wu CQ5 WCM System Administrator
© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
June 10-15, 2012 Growing Community; Growing Possibilities Lori Tirpak & Aaron Grant.
1 Disk Based Disaster Recovery & Data Replication Solutions Gavin Cole Storage Consultant SEE.
Wilma Hodges  Began faculty training and moving content in Nov  Original plan was to be fully migrated to Sakai by.
MSc IT UFIE8K-10-M Data Management Prakash Chatterjee Room 3P16
CS 333 Introduction to Operating Systems Class 18 - File System Performance Jonathan Walpole Computer Science Portland State University.
Analysis and Performance Information Systems 337 Prof. Harry Plantinga.
A web application for Educational Institutions Management Version E A Product by the makers of HENX International Technologies.
Oracle Architecture Client Computer Application Server Oracle Database Lan Or Internet Lan Or Internet Client Server Environment Application By Java or.Net.
Capacity Planning in SharePoint Capacity Planning Process of evaluating a technology … Deciding … Hardware … Variety of Ways Different Services.
Poliforma-T, the Sakai-based on-line campus for the UPV: history of a success. Raúl E. Mengod López Universidad Politécnica de Valencia (Spain)
Microsoft ® Official Course Module 12 Monitoring, Managing, and Recovering AD DS.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.
8th Sakai Conference4-7 December 2007 Newport Beach Internationalization in Sakai Raúl Mengod López Universidad Politécnica de Valencia.
I18n BOF Raúl E. Mengod López Universidad Politécnica de Valencia.
INFM603 Project Presentation Jenny Wu Prachi Chhokar.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Eric Westfall – Indiana University James Bennett – Indiana University ADMINISTERING A PRODUCTION KUALI RICE INFRASTRUCTURE.
Sakai 2.6 Internationalization Review Raúl E. Mengod López Universidad Politécnica de Valencia StockHolm, 5-6 May 2009.
WaveMaker Visual AJAX Studio 4.0 Training Installation.
Sakai and mysql Stephen Marquard, David Horwitz University of Cape Town July 2008.
Module 7: Fundamentals of Administering Windows Server 2008.
Copyrighted material John Tullis 10/6/2015 page 1 Performance: WebSphere Commerce John Tullis DePaul Instructor
Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint
Teachers and Developers: Searching for a common language Susana Martínez Naharro Universidad Politécnica de Valencia (Spain)
Bonrix SMPP Client. Index Introduction Software and Hardware Requirements Architecture Set Up Installation HTTP API Features Screen-shots.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
Indiana University’s Name for its Sakai Implementation Oncourse CL (Collaborative Learning) Active Users = 112,341 Sites.
New Features For Old Tools in Sakai Raúl E. Mengod López Universidad Politécnica de Valencia (Spain) New Features For Old Tools in Sakai Raúl E. Mengod.
Page 1 SQL Server Myths XV ENCONTRO DA COMUNIDADE SQLPORT Rui Ribeiro MCITP 2011/08/16.
10/23/2015ISYS366 - Installation1 ISYS366 Installation.
A Brief Documentation.  Provides basic information about connection, server, and client.
1 Tools for improving the performance of Moodle and other PHP applications Denis Boroja, Manager EAAS Peter Rowley, Director A&I Ellio Mourinho, Programmer.
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
Internationalizing Sakai Raúl Mengod Universidad Politécnica de Valencia (Spain)
The Million Point PI System – PI Server 3.4 The Million Point PI System PI Server 3.4 Jon Peterson Rulik Perla Denis Vacher.
Dr. David Roldán Martínez Universidad Politécnica de Valencia, Spain & Nuno Fernandes Universidade Fernando Pessoa, Portugal Site Stats, the power of event.
Distributed Logging Facility Castor External Operation Workshop, CERN, November 14th 2006 Dennis Waldron CERN / IT.
Operating Systems & Information Services CERN IT Department CH-1211 Geneva 23 Switzerland t OIS Drupal at CERN Juraj Sucik Jarosław Polok.
FroNtier Stress Tests at Tier-0 Status report Luis Ramos LCG3D Workshop – September 13, 2006.
“COLLEGE MANAGEMENT SYSTEM” Presented by: BCA VI SEMESTER.
#SummitNow A Day in the Life of an Alfresco Admin November 2013 Antonio Soler Premier Support Engineer Alfresco Software Ltd.
Monitoring Alfresco with Nagios/Icinga Toni de la Fuente Alfresco Senior Solutions Engineer Blog: blyx.com
Copyright © 2010 Pearson Education, Inc. or its affiliate(s). All rights reserved.1 | Assessment & Information 1 Online Testing Administrator Training.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Installing a Moodle Test Site The painless and easy way.
GNU EPrints 2 Overview Christopher Gutteridge 19 th October 2002 CERN. Geneva, Switzerland.
NetFlow Analyzer Best Practices, Tips, Tricks. Agenda Professional vs Enterprise Edition System Requirements Storage Settings Performance Tuning Configure.
Planning a Migration.
Understanding and Improving Server Performance
Understanding the New PTC System Monitor (PSM/Dynatrace) Application’s Capabilities and Advanced Usage Stephen Vaillancourt PTC Technical Support –Technical.
Get the Most out of SQL Server Standard Edition
Global Search: An Introduction and Administrator Perspective
Performance Management
Get to know SQL Manager SQL Server administration done right 
Installation and database instance essentials
Introduction of Week 3 Assignment Discussion
2018 Huawei H Real Questions Killtest
Moodle Scalability What is Scalability?
ColdFusion Performance Troubleshooting and Tuning
Lecture 15 Reading: Bacon 7.6, 7.7
Indexing For Optimal Performance
February 11-13, 2019 Raleigh, NC.
Presentation transcript:

Tuning Sakai for Large Production Systems: Hints and Tricks Raúl Mengod Universidad Politécnica de Valencia (Spain)

2 Overview Introduction: Universidad Politécnica de Valencia (UPV) Sakai in the UPV Servers Infrastructure Database Numbers Statistics of our first academic year. Risk Analysis Tuning the Database 24/7 Tuning Tomcat Tuning the application

3 Valencia, a place to visit

4 CAMPUS DE VERA

5 Introduction Universidad Politécnica Valencia (UPV) –Public academic institution since 1971 –Official and non-official studies –Graduate and Post–Graduate studies The UPV in numbers –4 Campuses – 15 Colleges –40 Research centers – 40 Official Degrees –20 post graduate studies – Students – Teachers –1.400 Staff

6 Sakai in the UPV Full production System in 2006/2007 –5 servers –Oracle Database v 9.2 –Integrated with SSO –Integrated with enrollment system –4.000 sites per year – students Based on the version –Customized to university requirements –A split branch from sakai 2.1.x maintenance branch –Many changes to the code, i18n, etc… –Almost impossible to merge patches/fixes

7 Sakai in the UPV

8 Server Infrastructure

9 Database Server –ULTRA SPARK RISK 1.4 GHz –16Gb RAM –Solaris v.10 Application Server –Xeon Multi-thread 3.4 GHz –4Gb RAM –Linux-Red Hat 3.0 Hw Balancer –CISCO CSS 11000

10 Database Numbers Sakai –# sites……………………………: –# students……………………….: –# enrollments…………………...: Resources –# resources items…………….…: –# resources folders……….….….: Melete –# sites using melete…..………..: 839 –# melete modules …….………..: –# melete sections……………….: Samigo –# sites using samigo…………....: 461 –# assessments………...………..: –# question pools………..……….: Other Tools –# assignments………………….: –# announcements………………: 5.896

11 Evolution Sept May 2007

12 Evolution Sept May 2007

13 Evolution Sept May 2007

14 Performance Problems Database Deadlocks Samigo-Gradebook integration High response time in Resources Tool High response time handling question pools Unacceptable response time in DropBox Tool Slow performance in Assignments Lists Unnecessary Database accesses of ResourceLoader General performance slow down with Site Stats Tool

15 Performance Risk Analyze What is the main risk for performance? –Developers Worried about ‘what to do it’ and not ‘How to do it’ Problems are generated with the design of the application –Test environments Developing environments are not good for performance testing QA is done on empty databases –Unknown future Unknown number of concurrent users

16 Tuning Sakai Database – uide+-+Database+Configuration+and+Tuninghttp://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+G uide+-+Database+Configuration+and+Tuning Sakai.properties – =false SAM_MEDIA_T.MEDIA BLOB in Oracle Enable caching queries on MySql Disk I/O issues with Linux –Heavy queries monitoring –Deadlock monitor Sakai integration problems with samigo-gradebook –Folllow the advices of your database provider –Trust your Database experts. Sakai is just another application

17 Indexes are our friends Access to table without an index is a possible future problem. –Developers sometimes are unaware of that problem –The problems doesn’t come suddenly Access to child table –Sometimes the PK is not used for all accesses –All access to an AK in a table should have an index

18 Logging SAKAI_SESSION and SAKAI_EVENT –Growing all the time –Never are deleted by Sakai –No indexes –Slows down some processes Our Database –SAKAI_SESSION… records –SAKAI_EVENTS…… records –Remove records to a Backup Table –Nightly process

19 Tuning Sakai Database SqlLAB –Test Database –Identify heavy queries (by time, by block) –Identify repeated queries –Is not free (Quest Software) Examples –Missing Indexes in SAMIGO –Multiple accesses to SAKAI_PREFERENCES Table from ResourceLoader –Child record recovered when not is necessary

20 Performance means 24 / 7 EMC Systems –Non stop for 24 hours (1 minute) –Make backup from Snapshots –Data files copy and Database Export

21 Tuning Sakai Servers Tuning –Have a good balancer IP balancing is simple but worked fine – Admin+Guide+-+JVM+Tuninghttp://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+ Admin+Guide+-+JVM+Tuning JAVA_OPTS Tuning the Garbage Collector (Sun) Java Tuning White Paper –UPV JAVA OPTS Maximum Heap 2Gb (Linux supports a maximum of 2.1 Gb) Minimum Heap 2Gb Perm Space 512 Mb No Out of Memory Working fine with users Stressed up to 700 users

22 Tuning Sakai Application/Sakai Tuning –Hibernate can help you or kill you Careful use of sets and subclasses Use of deferred queries when possible Be aware of what hibernate is doing –Tomcat logging Check the logging status INFO or WARN Working fine with INFO

23 Performance Testing Jmeter –Apache Foundation project –Sakai test suites available on reference directory Positive –Tests the whole system –Test max number of sessions working –Identifying bottlenecks Negative –Difficult to generate a real TestSuite –Not good for integration testing

24 Conclusions Follow the advices in the admin docs Try to anticipate to the performance Problems Have always ready an spare server Monitor systems Don’t trust anyone and Test, Test and Test.

Thank You