Primary Redundancy Task - PowerPoint PPT Presentation

About This Presentation
Title:

Primary Redundancy Task

Description:

Title: Slide 1 Author: dalesio Last modified by: EPICS Created Date: 6/16/2006 12:44:58 PM Document presentation format: On-screen Show Company: Stanford Linear ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 9
Provided by: dales151
Learn more at: https://epics.anl.gov
Category:

less

Transcript and Presenter's Notes

Title: Primary Redundancy Task


1
Primary Redundancy Task
Redundancy Monitor Process
Control Update Process
SNL Update Process
Control Exec
SNL Exec
Q U E
Q U E
SNL Program Context
Scan Task
SNL Program Context
Scan Task

SNL Program Context
Scan Task
I/O Driver
I/O Driver
I/O Driver
2
Backup Redundancy Task
LAN
Redundancy Monitor Process
Control Update Process
SNL Update Process
Control Exec
SNL Exec
Q U E
Q U E
SNL Program Context
Database
SNL Program Context

SNL Program Context
I/O Driver
I/O Driver
I/O Driver
I/O
3
On Initialization Read the database
  • getCurrentRedundState () as a variant of
    dbDumpRecords
  • NOTE This example is similar but not identical
    to the actual dbDumpRecords routine.
  • void dbDumpRecords(DBBASE pdbbase)
  • DBENTRY pdbentry
  • long status
  • pdbentry dbAllocEntry(pdbbase)
  • status dbFirstRecordType(pdbentry)
  • if(status) printf("No record
    descriptions\n")return
  • while(!status)
  • printf("record type s",dbGetRecordTypeNa
    me(pdbentry))
  • status dbFirstRecord(pdbentry)
  • if(status) printf(" No Records\n")
  • else printf("\n Records\n",dbGetRecordNa
    me(pdbentry))
  • while(!status)
  • status dbFirstField(pdbentry,TRUE)
  • if(status) printf(" No Fields\n")
  • while(!status)
  • printf(" ss",dbGetFieldName(pdb
    entry),

4
Posting Data For Servers V4
Database
Monitor Queue
Scan Task
dbPostEvent
5
Monitor Task to the Continuous Control Executive
(Redundancy)
Redundancy Backup All fields ever changed Flag
since last backup
Monitor Queue
PS1
VAL Changed On
I Changed .5
V Changed 9
SEVR Not Changed ok
Cont Cntrl Exec
PS1I
VAL Changed .5
SEVR Changed Minor
PS1V
VAL Changed 9
SEVR Changed Major
. .
6
Field Update Structure
  • Outgoing Cache
  • Red_Record_List
  • Pointer Point to local Record
  • Short Local Point Type
  • Pointer First Field
  • Character Sent Once (Cleared on New Session)
  • Int Handle
  • Red_Field_List
  • Short Field Number
  • Pointer Next Field or 0
  • Char Needs to be Sent
  • Pointer Local Address of Field
  • Pointer Address of Field Descriptor
  • Short Number of elements
  • Short Type
  • Short Size in Bytes of Data
  • Character Field Data BufferSize
  • Incoming Field Update List (Cleared on New
    Session)
  • Array of Red_in_Msg Structures

7
Diagnostic Data
  • Maximum Time a send update took
  • Maximum Number of records in a send update not in
    a traverse
  • Maximum Number of fields in a send update not in
    a traverse
  • Maximum Number of bytes in a send update not in a
    traverse

8
Continuous Control Exec - Status
Control Update Process
Control Update Process
Control Exec
Q U E
Control Exec
Q U E
Database
Scan Task
Backup
Scan Task

Scan Task
Primary
Write a Comment
User Comments (0)
About PowerShow.com