02 August 20041 OraMonPlans 08/04. 02 August 20042 Topics Enhancements –OraMon DB redundancy layer –Compare and fix OraMon configurations –Expiry of historical.

Slides:



Advertisements
Similar presentations
Testing Relational Database
Advertisements

Session 2Introduction to Database Technology Data Types and Table Creation.
Lectures on File Management
Password Management for Oracle8 Ari Kaplan Independent Consultant.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Status of VDCT Mark Pleško, Matej Šekoranja, John Maclean EPICS Meeting – Japan, 2004.
Composition CMSC 202. Code Reuse Effective software development relies on reusing existing code. Code reuse must be more than just copying code and changing.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
API Design CPSC 315 – Programming Studio Fall 2008 Follows Kernighan and Pike, The Practice of Programming and Joshua Bloch’s Library-Centric Software.
Chapter 9 Auditing Database Activities
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
(c) University of Washingtonhashing-1 CSC 143 Java Hashing Set Implementation via Hashing.
CSE 486/586 CSE 486/586 Distributed Systems PA Best Practices Steve Ko Computer Sciences and Engineering University at Buffalo.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Database Design for DNN Developers Sebastian Leupold.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
1 Oracle Database 11g – Flashback Data Archive. 2 Data History and Retention Data retention and change control requirements are growing Regulatory oversight.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
ABC Insurance Co. Paul Barry Steve Randolph Jing Zhou CSC8490 Database Systems & File Management Dr. Goelman Villanova University August 2, 2004.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
GUS Plugin System Michael Saffitz Genomics Unified Schema Workshop July 6-8th, Philadelphia, Pennsylvania.
® IBM Software Group © 2008 IBM Corporation Setting up Build Forge demo projects for ALM Windows only May – work in progress Stuart Poulin
Microsoft ® Business Solutions–Navision ® 4.0 Development II - C/SIDE Solution Development Day 5.
Oracle Data Integrator Procedures, Advanced Workflows.
Chapter 15 Recovery. Topics in this Chapter Transactions Transaction Recovery System Recovery Media Recovery Two-Phase Commit SQL Facilities.
Optimistic Design 1. Guarded Methods Do something based on the fact that one or more objects have particular states  Make a set of purchases assuming.
For each customer interface record, a new instance of Workflow main process is kicked off, as below Click to proceed…………
Sage CRM Developers Course Using the Component Manager.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
CERN Using the SAM framework for the CMS specific tests Andrea Sciabà System Analysis WG Meeting 15 November, 2007.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
An Introduction to Designing, Executing and Sharing Workflows with Taverna Katy Wolstencroft myGrid University of Manchester IMPACT/Taverna Hackathon 2011.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
21-07-xxxx IEEE MEDIA INDEPENDENT HANDOVER DCN: Title: Command Service Date Submitted: Month, NN, 200x Presented at IEEE.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
SEG 4110 – Advanced Software Design and Reengineering Topic T Introduction to Refactoring.
1 © 2013 Cisco and/or its affiliates. All rights reserved. Tidal Enterprise Orchestrator Cisco Service Portal Adapter Training October, 2012.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
CSC 405: Web Application Engineering II8.1 Web programming using PHP What have we learnt? What have we learnt? Underlying technologies of database supported.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
Lemon Tutorial Sensor How-To Miroslav Siket, Dennis Waldron CERN-IT/FIO-FD.
Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema).
Cognos 8 BI Configuration, Administration, and Upgrade Cognos 8 BI.
CASTOR Operations Face to Face 2006 Miguel Coelho dos Santos
ATLAS FroNTier cache consistency stress testing David Front Weizmann Institute 1September 2009 ATLASFroNTier chache consistency stress testing.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
© 2015 Eaton. All Rights Reserved.. Supplier Registration and Access.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Jean-Philippe Baud, IT-GD, CERN November 2007
System Monitoring with Lemon
Module 11: File Structure
Performance Data Collection and Reporting (PDCR)
Tables and Triggers.
SQL and SQL*Plus Interaction
Database application MySQL Database and PhpMyAdmin
June 2011 David Front Weizmann Institute
Inovonics Wireless Corporation
CS122 Using Relational Databases and SQL
Computer Science Projects Database Theory / Prototypes
CS1222 Using Relational Databases and SQL
Data Definition Language
Data Definition Language
Lab 2: Information Retrieval
CS122 Using Relational Databases and SQL
Presentation transcript:

02 August OraMonPlans 08/04

02 August Topics Enhancements –OraMon DB redundancy layer –Compare and fix OraMon configurations –Expiry of historical data –Saving disk space OraMonArch Bugs Others OraMon OO development with Together OraMon changes for Maciej’s alarm interfacing system?

02 August OraMon DB redundancy layer Requirements: 1.OraMon should retry connect after loosing DB connection Currently (as for OraMon 0.0.3), upon DB connection failure, OraMon issues a [FATAL] log and stops 2.OraMon should support ‘Do(Not)InsertSamples’ command Currently, OraMon inserts or does not insert samples, according to the value of environment variable MR_READONLY 3.OraMon should have a ‘HeartBeat’ command Currently, one may check if an OraMon instance is alive by issuing a MR API query to it (via lemon-utils/lemon-cli.pl). Attitudes to satisfy ‘retry connect’ and ‘Do(Not)InsertSamples’: –‘External’: (do some variable setting and) start Oramon Pros: Simple to implement, no internal changes to OraMon Con: Few minutes down time –‘Internal’: Change OraMon to satisfy requirement by adding specific code Pros and cons are the opposite compared to ‘External’

02 August OraMon DB redundancy layer Requirements: 1.OraMon should retry connect after loosing DB connection Currently (as for OraMon 0.0.3), upon DB connection failure, OraMon issues a [FATAL] log (+ failure kind) and stops 2.OraMon should support ‘Do(Not)InsertSamples’ command Currently, OraMon inserts or does not insert samples, according to the value of environment variable MR_READONLY 3.OraMon should have a ‘HeartBeat’ command Currently, one may check if an OraMon instance is alive by issuing a MR API query to it (via lemon-utils/lemon-cli.pl). Attitudes to satisfy ‘retry connect’ and ‘Do(Not)InsertSamples’: –‘External’: (do some variable setting and) start Oramon Pros: Simple to implement, no internal changes to OraMon Con: Few minutes down time –‘Internal’: Change OraMon to satisfy requirement by adding specific code Pros and cons are the opposite compared to ‘External’

02 August OraMon DB redundancy layer ‘External’ solutions: 1.Retry connect after loosing DB connection A simple (restart-oramon like) service that issues: /etc/rc.d/init.d/OraMon start after OraMon stops, if ‘failure kind’ belongs to a TBD failure set. 2.‘InsertSamples’ command to OraMon restart OraMon after un/set MR_READONLY: Do insert: unset MR_READONLY ; /etc/rc.d/init.d/OraMon restart Do not insert: set MR_READONLY=yes ; /etc/rc.d/init.d/OraMon restart 3.OraMon ‘HeartBeat’ Check sane response to a lemon-cli.pl query Should not get: Failed to MRs_getSamples() : #-1 : Connection refused Example: perl lemon-utils/lemon-cli.pl --metrics="10002" --nodes="lcgmon002d« --remote-server="

02 August OraMon DB redundancy layer ‘Internal’ solutions: 1.Retry connect after loosing DB connection Change OraMon code: when an SQL command fails, because of a TBD failure set, do not fail, but rather try to connect again first (for a few times, sleeping between each try) 2.‘InsertSamples’ command to OraMon Reuse and extend existing proprietary ‘insert samples’ protocol: Define ‘pseudo’ metricId (set) that OraMon interprets as commands rather than as metrics to be inserted Commands arrive from a specific port or from samples port. Commands may be added to ‘metrics configuration’ (like) configuration 3.OraMon ‘HeartBeat’: the same as previous

02 August Changing metrics configuration Related OraMon documentation : Changing metrics configurationChanging metrics configuration German’s 19/7 [Lemon] changes in metric data fields: -changes (adding/removing/changing data fields) to latestOnly metrics: ok David: - ok. - When applying a new configuration, all (TBD changed) latest tables and views will be automatically dropped -changes to latestOnly metrics which have a historical table defined, but not (anylonger) used (reconfigured from 'latestOnly=false' to true): drop historical table altogether. David: - ok. - Also, drop tables of removed metrics? (- Also, is Archiving of tables to be dropped required?)

02 August Changing metrics configuration Cont. -changes to 'historical' metrics (not latestOnly): - added data fields: OK David: TBD: ok iff adding fields does not complicate restoring of old data that do not have new fields -removed and changed data fields: drop historical values in DB, or refuse (global OraMon configuration Boolean parameter). David: I doubt that dropping historical data will satisfy potential problems while restoring older data. Assuming this is correct, ‘refuse’ will always be applied. -changes where historical values should be preserved: define a new metric ID. I don't think any conversion magic is appropriate, and for being consistent, it should be applied as well to all historical data already archived into CASTOR, which is far from trivial. David: As a rule of thumb: I suggest to avoid applying changes to archived data

02 August Changing metrics configuration David’s suggestions -Observation: The OraMon level of complexity to add a field is similar to that of applying other ‘compatible’ changes: remove field, change length -In order to avoid clashes between existing OraMon data schemas and previously archived data, I suggest that: -Each change to a metricClass will have new metricIds -Previous metricIds will be marked ‘obsolete’, by new metadata field -Previous metricIds may have a ‘replaced by metricId’ metadata field -In order to preserve older data and allow data schema changes, I suggest that when a ‘compatible’ change is applied to a metricClass, its existing historical table will be renamed to the new name, and automatic fixes will be applied by OraMon.

02 August Expiry of historical data 4162expiry of historical data4162expiry of historical data To be discussed at CERN 2004-Jul-19 12:14 jveldik jveldik

02 August Saving disk space Compress partitions –Howto: OraMon partitions thread to compress partitions that are at least one day old –TBD: May cause unexpected complications –Saving space is important, but not urgent Make numbers (and strings) smaller –May be applied after applying all ‘Changing metrics configuration’ items

02 August OraMonArch OraMonArch documentation If ‘archive and not drop’ is required, implementation should be enhanced, since current implementation drops and returns data Two OraMonArch instances: continuous and non-continuous: Non continuous requests can not be queued OraMonArch transaction error when stop/crash after DDL command and before updating relevant checkpoint

02 August bug reports Item IDSummarySubmitted on Submitted by 4000 OraMon packaging issues, broken restart-oramon Minor: understand a minor rpm mistake: restart-oramon is installed by OraMon non config rpm 2004-Jul-05 07:33 gcancio 4001LSB compliance for OraMon LSB compliance for OraMon Minor 2004-Jul-05 07:40 gcancio 4002 OraMon should continue running with old metadata if incompatibility is found Medium: See: Compare and fix OraMon configurations 2004-Jul-05 07:58 Gcancio 4004Floating point exception error using OraMonAdminFloating point exception error using OraMonAdmin Small: Fix a bug 2004-Jul-05 08:35 gcancio 4015 define/document policy for valid / invalid configuration changes Small: OraMon should also check for valid characters and keywords for eg. metric field descriptions. This should be part of the documentation as well. Add: OraMon and/or the script that creates metrics configuration may be enhanced to check against using Oracle reserved words as identifiers. Make sure that OraMon will not fail with fieldNames that consist more than one word + strange chars (see from 19/7) Jul-05 12:43 gcancio 4074OraMon - Validation Failures OraMon - Validation Failures Minor 2004-Jul-08 10:22 waldron 4097Add OraMon possible errors to its documentationAdd OraMon possible errors to its documentation Small 2004-Jul-12 12:28 dfront 4162expiry of historical dataexpiry of historical data To be discussed at CERN 2004-Jul-19 12:14 jveldik 4180 OraMon should support number sizes and a boolean type Small. Add: Learn if OraMon and agent can use the same code for metric validation Jul-21 05:58 dfront

02 August Bugs found while installing OraMon )OraMon views indicate time that is later by one hour than the real time 2)OraMonArch/Cont service script (/etc/rc.d/init.d/OraMonArchContCtl): Return only after completing the work. Should return immediately. May cause computer to stuck at reboot. 3)Probable problem: metric validation errors at lcgmon002d differ from those at ccs002d 4)To be addressed to German: recognizing metric configuration change according to date causes rpm update to fail by mistake. Suggested fix: A hard coded date attribute. 5)To be checked: I suspect that logrotate does not work at ccs002d for /var/log/OraMon.log, because it did grow to: 66M as for 27/7 6)OraMonArch transaction error when stop.crash after DDL command and before updating relevant checkpoint (See above)