SRB Replication Monitor | ||||||||
| Line: 20 to 20 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components. | ||||||||
| Added: | ||||||||
| > > |
For the more adventurous, we have a newer version under development here | |||||||
Files | ||||||||
SRB Replication Monitor | ||||||||
| Line: 215 to 215 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 214 to 214 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 211 to 211 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 129 to 129 | ||||||||
|---|---|---|---|---|---|---|---|---|
| SRB Setup | ||||||||
| Added: | ||||||||
| > > |
The replication monitor allows for different collections to use different SRB accounts to replicate data. | |||||||
Collection Configuration
| ||||||||
| Added: | ||||||||
| > > |
There are two parts to configuring a collection for monitoring in the replica monitor. First, you need to configure a master collection that will be used as the source of data. Second you need to configure a set of replica sites that are used to receive copies of data from the master site. There are a few simple requirements for the replica collections. They include
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Event Logs | ||||||||
SRB Replication Monitor | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 6 to 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 20 to 21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
Files
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quick Setup | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 56 to 64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Change WHERE_YOU_DOWNLOADED_SCHEMA.sql to correspond to the location you downloaded the schema listed below. Set YOUR_PASSWORD to a password to use for this database. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
...
<Parameter name="hibernate.connection.username" value="monitor" />
<Parameter name="hibernate.connection.password" value="YOUR_PASSWORD" />
<Parameter name="hibernate.connection.url" value="jdbc:mysql://localhost/srbmon" />
...
...
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/srbmon"
connectionName="monitor" connectionPassword="YOUR_PASSWORD"
userTable="USERS" userNameCol="username" userCredCol="password"
userRoleTable="USER_ROLES" roleNameCol="rolename"
/>
...
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
There are five main sections to the replication monitor.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
Adding Collections | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
The status screen shows an overview of all monitored collections. Clicking on a collection will bring up an expanded view of the collection.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
Viewing Errors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
SRB Setup
Collection Configuration
Event Logs
The event logs track every action that occurs while syncing a collection. As the logs can grow quite large, there are a number of filtering options available. The beginning and end of every sync is recorded as well as any new files or new replicas that were created and any errors that may have occurred. For a new file, you will generally see 3 entries per file, an entry for a new master file discovered, and two entries for the beginning and ending of the replica creation.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Account Management | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| System Configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
System configuration is done in the xxx.xml file for the webapp. This included database connection properties and some properties controlling logging and how replica sites are checked. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
System configuration is done in the TOMCAT/conf/Catalina/localhost/srb-monitor.xml file for the webapp. This included database connection properties and some properties controlling logging and how replica sites are checked.
The settings that most will want to change are:
<!-- Time after which a replica check is needed, in hours -->
<Parameter name="edu.umiacs.checkTime" value="168" />
<!-- Max number of running replica's, if set to 0 or blank, then no limit -->
<Parameter name="edu.umiacs.maxSyncThreads" value="5" />
<!-- Max number of attempts to copy a file if we get an error -->
<Parameter name="edu.umiacs.maxRetry" value="5" />
<!-- Should we schedule sync's or require them to be run manually -->
<Parameter name="edu.umiacs.autoSync" value="false" />
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Implementation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 84 to 193 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Logging | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Deleted: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
Files
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TODO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 95 to 200 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Deleted: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 116 to 222 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SRB Replication Monitor | ||||||||
| Line: 97 to 97 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
||||||||
| ||||||||
| Line: 106 to 106 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||
SRB Replication Monitor | ||||||||
| Line: 103 to 103 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 100 to 100 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 11 to 11 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
||||||||
| Line: 26 to 27 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 4.1.20 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database srbmon; Query OK, 1 row affected (0.01 sec) mysql> grant all on srbmon.* to monitor@localhost identified by 'YOUR_PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> use srbmon; Database changed mysql> source WHERE_YOU_DOWNLOADED_SCHEMA.sql; ERROR 1146 (42S02): Table 'srbmon.ACTIVITY_LOG_ENTRY' doesn't exist ERROR 1146 (42S02): Table 'srbmon.ACTIVITY_LOG_ENTRY' doesn't exist ... ... Query OK, 0 rows affected (0.00 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> exit ByeChange WHERE_YOU_DOWNLOADED_SCHEMA.sql to correspond to the location you downloaded the schema listed below. Set YOUR_PASSWORD to a password to use for this database. | |||||||
| ||||||||
| Line: 56 to 84 | ||||||||
| Logging | ||||||||
| Added: | ||||||||
| > > |
Files
| |||||||
TODO | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
| Added: | ||||||||
| > > |
| |||||||
SRB Replication Monitor | ||||||||
| Line: 72 to 72 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
SRB Replication Monitor | ||||||||
| Line: 69 to 69 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
SRB Replication Monitor | ||||||||
| Line: 22 to 22 | ||||||||
|---|---|---|---|---|---|---|---|---|
Quick Setup | ||||||||
| Added: | ||||||||
| > > |
| |||||||
Usage | ||||||||
| Line: 35 to 44 | ||||||||
| System Configuration | ||||||||
| Added: | ||||||||
| > > |
System configuration is done in the xxx.xml file for the webapp. This included database connection properties and some properties controlling logging and how replica sites are checked. | |||||||
Implementation | ||||||||
| Line: 48 to 59 | ||||||||
TODO | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
SRB Replication Monitor | ||||||||
| Line: 58 to 58 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
SRB Replication Monitor | ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Line: 10 to 18 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components. | ||||||||
| Added: | ||||||||
| > > |
Quick SetupUsageStatus Adding Collections Viewing Errors Account Management System Configuration | |||||||
ImplementationThe Monitor consists of three parts, first a database backend that tracks all monitored files, configuration, and logging information. Second a sync thread that runs across each collection, looking for new items and logging any changes. Third an interface for configuring collections and viewing the results of a synchronization. | ||||||||
| Line: 24 to 50 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
SRB Replication Monitor | ||||||||
| Line: 14 to 14 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The Monitor consists of three parts, first a database backend that tracks all monitored files, configuration, and logging information. Second a sync thread that runs across each collection, looking for new items and logging any changes. Third an interface for configuring collections and viewing the results of a synchronization. | ||||||||
| Added: | ||||||||
| > > |
Replication Workflow Logging | |||||||
TODO | ||||||||
SRB Replication Monitor | ||||||||
| Line: 10 to 10 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components. | ||||||||
| Changed: | ||||||||
| < < |
+ | |||||||
| > > |
ImplementationThe Monitor consists of three parts, first a database backend that tracks all monitored files, configuration, and logging information. Second a sync thread that runs across each collection, looking for new items and logging any changes. Third an interface for configuring collections and viewing the results of a synchronization. | |||||||
TODO
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
||||||||
| -- MikeSmorul - 25 Aug 2006 | ||||||||
SRB Replication Monitor | ||||||||
| Line: 10 to 10 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components. | ||||||||
| Added: | ||||||||
| > > |
+ | |||||||
TODO
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
SRB Replication MonitorOverviewThe SRB Replica monitor is a simple webapp that will watch registered directories and ensure that copies exist at designated mirrors. The monitor stores enough information to know if files have been removed from the master site and when the last time a file was seen. In addition any action that the webapp takes on files is logged. The monitor does NOT do any type of integrity checking, this is the responsibility of additional components.TODO
| |||||||