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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a064b7937c068e784c737c5d58813a12bbc9f595a1508658835c55cebf94cdc5
4
- data.tar.gz: 72d95e27d0a1432e7b6cdb075549982d23088bb2754f1e8306ffaf9e6ecbddad
3
+ metadata.gz: 2839b8ed6c5fd6afa8e7d5d7fa84c99ffd34b169bc7a5cd28706a5dc153fab37
4
+ data.tar.gz: 1b95ad9e59ccb9d8450195c1955c30661943b7cc364c53b5f5e598039ed866ae
5
5
  SHA512:
6
- metadata.gz: f78b267847a2745db7337c1b66c9589efe3761fe288f0fdbf53d0efec3e0b5267bf60db8f821da58dd02352ab6322bbc86fe965bbe0c9191d99bfef18e454a1c
7
- data.tar.gz: 84e2626724c0f7b47596834281e9b46a00edabef1051eb6f306b6af9c8046ca51fd963eac12b942989e8f36e36d1866d271fa090b410384955cf3b24be2d7015
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.7...HEAD
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Duel
4
4
  module MySQL
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
6
6
  end
7
7
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duel-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Berlin