International Engineering Consortium
Web ProForums
Building Carrier Grade Applications Using a Highly Available Database Management System
Sponsored by:
Solid Technologies

6. Understanding Safeness Levels

Differences in safeness levels are defined by the moments that the log records of the active and standby databases are written to disk.

In a 1-Safe system, only the log of the active database is written before the application sees that the transaction has committed. This is shown in Figure 8.

Figure 8
Figure 8: 1-Safe Timeline

In a 2-Safe Received system, the log of the active database is written to disk, and the active database receives notification that the log record has been received by the standby database before the application sees that the transaction has committed. This is shown in Figure 9.

Figure 9
Figure 9: 2-Safe Received Timeline

In a 2-Safe Durable system, the log records of both databases are written to disk before the application sees that the transaction has committed. This is shown in Figure 10.

Figure 10
Figure 10: 2-Safe Durable Timeline

The table in Figure 11 shows for each safeness level the condition of the two databases after the application sees that a transaction has committed.

 Active DatabaseStandby Database
1-SafeLog written to disk 
2-Safe ReceivedLog written to diskLog received
2-Safe DurableLog written to diskLog written to disk

Figure 11: Safeness Levels are Defined by Log Actions

The Three-Way Tradeoff: Speed, Safeness, MTTR

These three techniques offer different data safeness (because data is stored more or less reliably), different MTTR (because the amount of work that the standby database must perform to be ready for business varies), and different application speed (because more or less activity tales place asynchronously).

Registered Users
Enjoy exclusive access to free On-Line Education and receive the biweekly IEC newsletter.

IEC Newsletter
Get the latest industry information including critical insights from key industry leaders, technology briefings, and an Analyst Corner.
Current
Subscribe

Newsroom

IEC Corporate Member

Advertising Kit