parent
15d0a91e1e
commit
b1da55261b
4 changed files with 19 additions and 12 deletions
@ -0,0 +1,14 @@ |
||||
# Failure Modes |
||||
|
||||
There are several different failure modes that can occur in a database, including: |
||||
|
||||
* Read contention: This occurs when multiple clients or processes are trying to read data from the same location in the database at the same time, which can lead to delays or errors. |
||||
* Write contention: This occurs when multiple clients or processes are trying to write data to the same location in the database at the same time, which can lead to delays or errors. |
||||
* Thundering herd: This occurs when a large number of clients or processes try to access the same resource simultaneously, which can lead to resource exhaustion and reduced performance. |
||||
* Cascade: This occurs when a failure in one part of the database system causes a chain reaction that leads to failures in other parts of the system. |
||||
* Deadlock: This occurs when two or more transactions are waiting for each other to release a lock on a resource, leading to a standstill. |
||||
* Corruption: This occurs when data in the database becomes corrupted, which can lead to errors or unexpected results when reading or writing to the database. |
||||
* Hardware failure: This occurs when hardware components, such as disk drives or memory, fail, which can lead to data loss or corruption. |
||||
* Software failure: This occurs when software components, such as the database management system or application, fail, which can lead to errors or unexpected results. |
||||
* Network failure: This occurs when the network connection between the database and the client is lost, which can lead to errors or timeouts when trying to access the database. |
||||
* Denial of service (DoS) attack: This occurs when a malicious actor attempts to overwhelm the database with requests, leading to resource exhaustion and reduced performance. |
@ -1,7 +0,0 @@ |
||||
# Read Contention |
||||
|
||||
Database contention is a situation that occurs when multiple users or processes are trying to access the same resource in a database concurrently, and there are limited resources available to handle these requests. This can cause delays or conflicts as the database tries to manage the competing demands for resources. |
||||
|
||||
Contention can occur at various levels in a database, such as at the table level, the page level, or the row level. For example, if two users are trying to update the same row in a table at the same time, the database may have to resolve the conflict by choosing which update to apply. |
||||
|
||||
Contention can have a negative impact on the performance of a database, as it can lead to delays in processing requests and reduced efficiency. To address contention, database administrators may need to optimize the design of the database, implement locking mechanisms, or increase the availability of resources. |
Loading…
Reference in new issue