Tag

Lock Contention

0 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Jun 2, 2024 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL: A Postmortem

An in‑depth postmortem of a costly MySQL data‑migration failure caused by using INSERT INTO SELECT without proper indexing, detailing the OOM issue, full‑table scans, lock contention, and best practices to safely employ the statement.

INSERT INTO SELECTLock ContentionMySQL
0 likes · 7 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL: A Postmortem
IT Services Circle
IT Services Circle
Nov 12, 2023 · Databases

Why Many Large Internet Companies Avoid Using MySQL Foreign Keys

The article explains that while MySQL foreign keys ensure data consistency and integrity, they introduce performance overhead, lock contention, and scalability issues—especially in high‑concurrency and sharded environments—leading many large internet firms to forego them in favor of application‑level solutions.

Lock ContentionMySQLSharding
0 likes · 5 min read
Why Many Large Internet Companies Avoid Using MySQL Foreign Keys
Didi Tech
Didi Tech
Aug 28, 2020 · Operations

Ceph Performance Optimization: Lock-Related Issues and Solutions

The article details how Didi’s large‑scale Ceph deployment suffered from high tail latency due to long‑held and coarse‑grained locks, and describes a series of fixes—including asynchronous read threads, fine‑grained object caches, per‑thread lock‑free logging, and lock‑free filestore apply—that cut latency by up to 90 % and more than doubled read throughput.

BluestoreCephDistributed Storage
0 likes · 12 min read
Ceph Performance Optimization: Lock-Related Issues and Solutions
Aikesheng Open Source Community
Aikesheng Open Source Community
May 26, 2020 · Databases

Troubleshooting DDL Hang Issues in Dble: Step-by-Step Analysis

This article outlines a systematic approach to diagnosing and resolving DDL execution hangs in Dble, covering log inspection, context analysis, identifying problematic data nodes and MySQL connections, and confirming lock contention as the root cause.

DBLEDDLDatabase Middleware
0 likes · 4 min read
Troubleshooting DDL Hang Issues in Dble: Step-by-Step Analysis
Tencent Database Technology
Tencent Database Technology
Jun 27, 2019 · Databases

Analysis and Optimization of InnoDB lock_wait_thread Contention in a Tencent Cloud Database

The article investigates intermittent slow update performance in a Tencent Cloud internal system caused by massive lock_wait_thread contention, analyzes the underlying InnoDB lock mechanisms and thread behavior, implements a fix by disabling lock_wait_suspend_thread triggers, and demonstrates substantial latency reduction through benchmark results.

InnoDBLock ContentionMySQL
0 likes · 8 min read
Analysis and Optimization of InnoDB lock_wait_thread Contention in a Tencent Cloud Database
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 19, 2019 · Databases

Root Cause Analysis of Slave IO Thread Hang in MySQL Semi‑Sync Replication with rpl_semi_sync_master_wait_for_slave_count=1

An in‑depth investigation reveals that when MySQL semi‑sync replication is configured with rpl_semi_sync_master_wait_for_slave_count=1, starting a second slave can cause the master’s dump thread to fail, leading to slave_io_thread stalls; the analysis includes reproduction steps, status checks, thread stack traces, and a patch using sched_yield to resolve the lock contention.

Bug FixDump threadLock Contention
0 likes · 8 min read
Root Cause Analysis of Slave IO Thread Hang in MySQL Semi‑Sync Replication with rpl_semi_sync_master_wait_for_slave_count=1