We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9170a90 commit 9ccd8a0Copy full SHA for 9ccd8a0
crates/common/src/knobs.rs
@@ -847,8 +847,9 @@ pub static MYSQL_MAX_DYNAMIC_SMART_CHUNK_SIZE: LazyLock<usize> =
847
pub static MYSQL_MAX_CHUNK_BYTES: LazyLock<usize> =
848
LazyLock::new(|| env_config("MYSQL_MAX_CHUNK_BYTES", 10 << 20));
849
850
-/// Timeout for all operations on MySQL connections
851
-pub static MYSQL_TIMEOUT: LazyLock<u64> = LazyLock::new(|| env_config("MYSQL_TIMEOUT_SECONDS", 30));
+/// Timeout for all operations on MySQL connections, Vitess timeout is 20s so
+/// set lower than that
852
+pub static MYSQL_TIMEOUT: LazyLock<u64> = LazyLock::new(|| env_config("MYSQL_TIMEOUT_SECONDS", 19));
853
854
/// Maximum number of connections to MySQL
855
pub static MYSQL_MAX_CONNECTIONS: LazyLock<usize> =
0 commit comments