duel-mysql 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/duel/mysql/version.rb +1 -1
- data/lib/duel/mysql.rb +5 -0
- data/sig/duel/mysql.rbs +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2839b8ed6c5fd6afa8e7d5d7fa84c99ffd34b169bc7a5cd28706a5dc153fab37
|
|
4
|
+
data.tar.gz: 1b95ad9e59ccb9d8450195c1955c30661943b7cc364c53b5f5e598039ed866ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78fc25d07516255f740ef0c58f2ff934fc54178e1582dbd9ec3ec2c1056753eef582567c49debb5abe37a967b6a7daf2beb162852fefd8661632f7773e912eb5
|
|
7
|
+
data.tar.gz: 1a2a20de6194aec43062ec66aea1f8302b2c9c36db6ef198572a924d1c71f74096ee59c7d6b972c9c2ba21844a00252bc543a15e14117dc710638a5ab77dc055
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.8] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Says each worker's server takes at most 450 MB
|
|
15
|
+
(`Duel::MySQL.worker_memory`), so Duel 0.1.8 or later fits no more
|
|
16
|
+
workers than that leaves room for, even where a server takes less as
|
|
17
|
+
it starts.
|
|
18
|
+
|
|
10
19
|
## [0.1.7] - 2026-11-10
|
|
11
20
|
|
|
12
21
|
No changes of its own: released in step with the other Duel gems.
|
|
@@ -101,7 +110,8 @@ or later (not MariaDB).
|
|
|
101
110
|
CI.
|
|
102
111
|
- RBS signatures in sig/, checked with Steep.
|
|
103
112
|
|
|
104
|
-
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.
|
|
113
|
+
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.8...HEAD
|
|
114
|
+
[0.1.8]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.7...duel-mysql-v0.1.8
|
|
105
115
|
[0.1.7]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.6...duel-mysql-v0.1.7
|
|
106
116
|
[0.1.6]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.5...duel-mysql-v0.1.6
|
|
107
117
|
[0.1.5]: https://github.com/sferik/duel-ruby/compare/duel-mysql-v0.1.4...duel-mysql-v0.1.5
|
data/lib/duel/mysql/version.rb
CHANGED
data/lib/duel/mysql.rb
CHANGED
|
@@ -52,6 +52,11 @@ module Duel
|
|
|
52
52
|
# what's in it is thrown away).
|
|
53
53
|
RUNNING = %w[--innodb-fast-shutdown=2].freeze
|
|
54
54
|
|
|
55
|
+
# The most memory a worker's server takes (see Duel.plugin), even with
|
|
56
|
+
# OPTIONS: some 450 MB, measured on a GitHub runner, more than it
|
|
57
|
+
# takes as it starts, before it's used.
|
|
58
|
+
def self.worker_memory = 450 << 20
|
|
59
|
+
|
|
55
60
|
# Configures Duel for the plugin (c.use :mysql): the server and its
|
|
56
61
|
# metrics. +server+ is the program, +args+ more of its options,
|
|
57
62
|
# +setup+ SQL each worker's database runs when it's started (a
|
data/sig/duel/mysql.rbs
CHANGED
|
@@ -54,6 +54,9 @@ module Duel
|
|
|
54
54
|
# Loads Trilogy, as the first connection is made.
|
|
55
55
|
def self.require_trilogy: () -> bool
|
|
56
56
|
|
|
57
|
+
# The most memory a worker's server takes.
|
|
58
|
+
def self.worker_memory: () -> Integer
|
|
59
|
+
|
|
57
60
|
def self.run: (String socket, String sql) -> ::Trilogy::Result
|
|
58
61
|
|
|
59
62
|
# What the worker's server has done so far, but for the plugin's own
|