APEL & MySQL Alison Packer Richard Sinclair. APEL Accounting Processor for Event Logs extracts job information by parsing batch system (PBS, LSF, SGE.

Slides:



Advertisements
Similar presentations
© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
Advertisements

Chapter 5 Data Management. – The Best & Most Convenient Way to Learn Salesforce.com 2 Objectives By the end of the module, you.
Unauthorized Reproduction Prohibited SkyPoint Alarm Integration Add-On Using OnGuard Alarms to create events in SkyPoint Also called ‘SkyPoint V0’ CR4400.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Ch 8-3 Working with domains and Active Directory.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Accounting Update Dave Kant Grid Deployment Board Nov 2007.
CSCI 6962: Server-side Design and Programming
True or False? Programming languages can be used to update databases and communicate with other systems. True.
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
Concepts of Database Management Seventh Edition
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Introduction on R-GMA Shi Jingyan Computing Center IHEP.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
EGI-InSPIRE RI EGI-InSPIRE EGI-InSPIRE RI GPGPU Accounting John Gordon STFC 09/04/2013 EGI CF – Accounting and Billing1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Using sub query. Sub query A query inside another query.
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
Upgrade Process. GL Adjustments Create Backup Restore from a Backup Download & Install.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Dave Kant Grid Operations Centre LCG Workshop CERN 24/3/04.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
A Brief Documentation.  Provides basic information about connection, server, and client.
Open Science Grid OSG CE Quick Install Guide Siddhartha E.S University of Florida.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
Grid Operations Centre LCG Accounting Trevor Daniels, John Gordon GDB 8 Mar 2004.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Some Title from the Headrer and Footer, 19 April Overview Requirements Current Design Work in Progress.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Actions Queries. Understanding Action Queries  Action queries are a way to make corrections to database. They can make an enormous mess of database if.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Dave Kant Monitoring ROC Workshop Milan 10-11/5/04.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
DataFlow Diagram – Level 0
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Local Job Accounting Cristina del Cano Novales STFC-RAL.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks APEL CPU Accounting in the EGEE/WLCG infrastructure.
Open Science Grid Build a Grid Session Siddhartha E.S University of Florida.
APEL Accounting Update Dave Kant CCLRC, e-Science Centre.
Dave Kant LCG Accounting Overview GDA 7 th June 2004.
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
APEL Architecture Alison Packer. Overview Grid jobs accounting tool APEL Client software - installed in sites (CEs, gLite- APEL node) APEL Server accepts.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
EGI-InSPIRE RI EGI-InSPIRE EGI-InSPIRE RI APEL Regional Accounting Alison Packer (STFC) Iván Díaz Álvarez (CESGA) APEL.
HTCondor Accounting Update
3 A Guide to MySQL.
Creating Data Base & Sql Data Source
The New APEL Client Will Rogers, STFC.
Introduction to Web programming
Cristina del Cano Novales STFC - RAL
Discussions on group meeting
Configuration Of A Pull Network.
AlwaysOn Availability Groups
Creating Data Base & Sql Data Source
APEL as a Global Accounting Repository
Ridewaan Hanslo ridewaanhanslo
Presentation transcript:

APEL & MySQL Alison Packer Richard Sinclair

APEL Accounting Processor for Event Logs extracts job information by parsing batch system (PBS, LSF, SGE or Condor) event log files and blah accounting log files LDAP queries of the CE obtain the CPU performance figures for the worker node clusters. inserts results into a local MySQL database.

The APEL accounting database MySQL database installed as well as APEL client software. Following tables: BlahdRecords EventRecords GkRecords LcgProcessedFiles LcgRecords MessageRecords RepublishInfo SpecRecords

Archiving old records Archive old records to reclaim space: 1. Get the latest successful publishing date - mysql> select * from RepublishInfo Shows last MeasurementDate records published 2. Choose dates to archive, then dump the records processed before that date to file...

Saving the data mysqldump -u -p -- where=“ '" >.sql Example: # mysqldump -u accounting -p accounting LcgRecords -- where=“MeasurementDate Lcgrecords.sql

Saving the data contd. For all other tables there is also a processed flag to add to the mysqldump command: # mysqldump -u accounting -p accounting EventRecords --where="EventDate EventRecords.sql # mysqldump -u accounting -p accounting BlahdRecords --where=“ValidFrom BlahdRecords.sql

# mysqldump -u accounting -p accounting MessageRecords --where=“ValidFrom MessageRecords.sql # mysqldump -u accounting -p accounting GkRecords --where=“ValidFrom GkRecords.sql

Delete old records from the tables Backup the filesystem where your archived mysqldump files were saved Check the backup was successful

Restore from sql files Create a new database (e.g. called accounting_restore) Restore records from file to new database, e.g. # mysql -u accounting -p accounting_restore < LcgRecords.sql etc.

Delete the records mysql> delete from EventRecords where EventDate < 'YYYY-MM-DD' and Processed = 1; mysql> delete from BlahdRecords where ValidFrom < 'YYYY-MM-DD' and Processed = 1; mysql> delete from LcgRecords where MeasurementDate < 'YYYY-MM-DD';

Delete contd. mysql> delete from MessageRecords where ValidFrom < 'YYYY-MM-DD' and Processed = 1; mysql> delete from GkRecords where ValidFrom < 'YYYY-MM-DD' and Processed = 1;

Optimize tables to reclaim space Optimizing tables reclaims space which is not automatically reclaimed by deleting the old records: mysql> optimize table EventRecords; mysql> optimize table LcgRecords; mysql> optimize table BlahdRecords; mysql> optimize table MessageRecords; mysql> optimize table GkRecords;

The SpecRecords table When APEL parser is run, it connects to the local GIIS and retrieves the latest SpecInt values for every cluster/subcluster. This information is stored in the SpecRecords table

SpecRecords table - wrong value Ensure parser configuration is correct for retrieving values from GIIS, check this in /etc/glite-apel- batchsystem/parser-config.xml in section

CPUProcessor Info CPU Scaling value is either retrieved from LDAP query or may be defined manually. Either (SpecInt:SpecFloat ): 300:200 Or: ldap://site-bdii.gridpp.rl.ac.uk N.B. if both, the default value will be used in preference to querying the LDAP server.

Wrong value & records published Ensure publishing is now with correct values Know the dates where the records had incorrect SpecInt2000 values – see EGI Accounting Portal Update the fields of incorrect records in LcgRecords table and republish …

Update Incorrect Records Check the records which need updating, example for September, 2011: mysql> select * from LcgRecords where MeasurementDate >= ‘ ’ and MeasurementDate < ‘ ’; Check the SpecInt2000 field in the output for those with the incorrect value

Update SpecInt2000 errors mysql> update LcgRecords set SpecInt2000 = where SpecInt2000 = and MeasurementDate >= ‘ ’ and MeasurementDate < ‘ ’;

Republish Records Run the apel publisher in "gap" publishing mode, set in the publisher-config.xml file example: gap

Corrupt Database You can check a table is OK by running: mysql> check table ; If there are errors you can run: mysql> repair table ; This can take a LONG time!

Links