~bigbes/tarantool-etcd · events

e0pt4dek8r359ntd6tkl58bqsch5dok9 · 217 rows

idissue_idevent_typeactorold_valuenew_valuecommentcreated_at
ae9f2671-c7f7-4da5-8fa2-cfc2c65d2ea6tarantool-etcd-1twlabel_addedEugene BlikhNULLNULLAdded label: milestone:m2-production2026-05-21T14:37:04Z
aeb36475-4639-4579-bfa2-4c93eb61f3c7tarantool-etcd-iz4label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:23Z
aedaf13b-63f5-424d-a0e6-6fe22cce2af7tarantool-etcd-q5fcreatedEugene BlikhNULL2026-05-20T09:45:16Z
b0e19218-53ed-4843-ba7d-4462da9c2ae1tarantool-etcd-8ssclosedEugene BlikhExample written and verified end-to-end on Tarantool EE 3.7.0.NULL2026-05-20T14:38:01Z
b159889e-8fec-4a8a-ab60-f55063a86e08tarantool-etcd-ovocreatedEugene BlikhNULL2026-05-20T09:45:16Z
b16d8be3-aaad-4f74-b1c3-d62ddb2be376tarantool-etcd-50gcreatedEugene BlikhNULL2026-05-19T17:54:19Z
b193168a-3a3c-47c0-89a7-049261d601b9tarantool-etcd-umccreatedEugene BlikhNULL2026-05-20T09:45:13Z
b33d558d-b27a-42be-9bcb-c54ff0af7049tarantool-etcd-1twcreatedEugene BlikhNULL2026-05-20T09:55:24Z
b48b958c-b41f-4361-9007-0b27842e5bddtarantool-etcd-0gvlabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:26Z
b6ab8af9-f3dc-48fe-b30c-223f9fe0fb59tarantool-etcd-w5rcreatedEugene BlikhNULL2026-05-19T17:54:43Z
b8e57f80-deb4-4d00-9e57-85ddef884982tarantool-etcd-0gnclaimedEugene Blikh{"id":"tarantool-etcd-0gn","title":"Implement Watch extras: filters, progress_notify (periodic), fragment","description":"WatchCreateRequest fields filters (NOPUT/NODELETE), progress_notify periodic notify, and fragment (large-response splitting) are declared in pb/defs.lua but ignored by create_watcher/grpc.lua/json.lua. On-demand RequestProgress already works. Implement the missing three.","status":"open","priority":2,"issue_type":"feature","owner":"bigbes@gmail.com","created_at":"2026-05-20T06:35:53Z","created_by":"Eugene Blikh","updated_at":"2026-05-20T06:35:53Z"}{"assignee":"Eugene Blikh","status":"in_progress"}NULL2026-05-20T09:35:59Z
ba0ed8a8-28e1-4823-b280-6881bc3f6a9dtarantool-etcd-6jslabel_addedEugene BlikhNULLNULLAdded label: milestone:m5-clustering2026-05-21T14:37:38Z
ba878427-f6e7-40e5-a96f-0a41c5357472tarantool-etcd-m1ncreatedEugene BlikhNULL2026-05-19T17:54:47Z
bcea305e-5ca6-4623-8b11-710a5a27b86ftarantool-etcd-828label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:18Z
bd723815-dc24-47f7-936d-050fc771d01btarantool-etcd-584label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:34Z
be256022-9e6a-4ff4-932c-654e04c46a07tarantool-etcd-ag2label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:28Z
beca352f-1006-4b4f-8d9e-65a76a3f674etarantool-etcd-1dklabel_addedEugene BlikhNULLNULLAdded label: milestone:m2-production2026-05-21T14:37:04Z
c0beb3fb-6fd4-4d27-8652-a98fc096c766tarantool-etcd-234label_addedEugene BlikhNULLNULLAdded label: milestone:m3-performance2026-05-21T14:37:08Z
c1386207-32df-49c3-b25c-ee876836ea2ftarantool-etcd-buqcreatedEugene BlikhNULL2026-05-19T16:34:52Z
c414b76a-3624-4dfd-818b-f089ff9db282tarantool-etcd-unwlabel_addedEugene BlikhNULLNULLAdded label: milestone:m2-production2026-05-21T14:37:03Z
c5de34b0-c93e-4818-ae30-6aa927aede67tarantool-etcd-9z2label_addedEugene BlikhNULLNULLAdded label: milestone:m1-conformance2026-05-21T14:37:00Z
c6b02065-1911-4de5-8c58-703f1b1692a0tarantool-etcd-acpcreatedEugene BlikhNULL2026-05-19T17:53:51Z
c880b8b0-ed63-4ece-b5de-692020db5a8etarantool-etcd-kbclabel_addedEugene BlikhNULLNULLAdded label: milestone:m1-conformance2026-05-21T14:37:00Z
c9078539-4e4c-4834-97ee-a664a9929575tarantool-etcd-w5rlabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:12Z
c96c50eb-e2fe-408f-963c-a7e10063d341tarantool-etcd-3c2label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:20Z
ca3b2459-193c-4ac8-b6e5-8eda8a4ef8fdtarantool-etcd-sdtlabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:29Z
cb892177-bcbc-4882-91f0-1785edb94ff0tarantool-etcd-070createdEugene BlikhNULL2026-05-19T17:53:57Z
ccedcf22-e6e2-405a-8858-3f9736f1fa40tarantool-etcd-jg3createdEugene BlikhNULL2026-05-20T09:17:53Z
cec28fbf-5a6f-4db7-b464-7e342c8db297tarantool-etcd-75ucreatedEugene BlikhNULL2026-05-20T09:17:55Z
d03951d3-60b2-45c7-840f-7d0341f72993tarantool-etcd-wqncreatedEugene BlikhNULL2026-05-19T17:54:30Z
d2e53a79-8623-4b49-bb6e-49bbf78e2cectarantool-etcd-584createdEugene BlikhNULL2026-05-19T17:53:53Z
d635b4b2-1fd9-464f-b4b5-d6cc4ce38eeftarantool-etcd-sqvlabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:11Z
d6b47667-9634-4546-8b96-39a6728f21ddtarantool-etcd-b08createdEugene BlikhNULL2026-05-19T16:34:09Z
da7cd87b-3369-4644-93f4-161970cc913dtarantool-etcd-hx9label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:20Z
daf8dd2b-bb5f-4961-8464-27cd5bddd3f5tarantool-etcd-3spupdatedEugene Blikh{"id":"tarantool-etcd-3sp","title":"LeaseKeepAlive fsyncs WAL on every renew","description":"On btrfs SSD bench (2026-05-19 disk run), LeaseKeepAlive/n_X drops from 4 234 ops/s (tmpfs) to 207 ops/s on tarantool while etcd holds at ~7 400 ops/s in both configs.\n\np50 goes from 224 µs (tmpfs) to 4 548 µs (disk) — exactly one btrfs fsync. Root cause at app/etcd/lease.lua:191:\n\n box.space.leases:update(id, {{'=', 'expiry_time', now + lease.ttl}})\n\nThe leases space is is_sync=true so every keep-alive does a full WAL append + fsync. Etcd's KeepAlive is an in-memory TTL bump with no disk write.\n\nFix sketch: split expiry into an in-memory map (refreshed on every KeepAlive) and persist only on grant/revoke. The expiry fiber should read from the in-memory map. Trade-off: leases may extend further into the future than the on-disk record after a crash, which is fine — clients have to re-keep-alive after reconnect anyway.\n\nSee docs/BENCH.md Linux x86_64 disk section (Open follow-ups).","status":"open","priority":2,"issue_type":"bug","owner":"bigbes@gmail.com","created_at":"2026-05-19T17:33:47Z","created_by":"Eugene Blikh","updated_at":"2026-05-19T17:33:47Z"}{"design":"GOAL: lease keep-alive must not touch the WAL. Mirror etcd's split — durable\nstate = {lease record, granted TTL, attached keys}; ephemeral leader-local\nstate = the expiry deadline (refreshed on every keep-alive, never persisted).\n\n=== STATE MODEL ===\nAdd a module-level in-memory map in app/etcd/lease.lua:\n local deadlines = {} -- [lease_id] = monotonic deadline (clock.monotonic()+ttl)\nThis is leader-local. Followers never keep-alive (the gRPC write gate routes\nLeaseKeepAlive to the leader), and only the leader runs the expiry fiber and\ncan revoke. So the countdown is structurally a leader concern.\n\nThe `leases` space (schema.lua:97-118) stays is_sync=true and keeps its\n{id, ttl, expiry_time, granted_ttl} format. The `expiry_time` FIELD and its\nTREE index (schema.lua:113) become vestigial — written once at grant, never\nthe source of liveness again. Leave them to avoid a space migration; an\noptional follow-up can drop the field+index. Nothing reads expiry_time after\nthis change.\n\n=== HANDLER CHANGES (app/etcd/lease.lua) ===\n1. grant() ~L70: after `box.space.leases:insert(...)`, seed\n `deadlines[id] = now + ttl`. Insert still persists (durable, required).\n2. keepalive() ~L191: REPLACE\n box.space.leases:update(id, {{'=', 'expiry_time', now + lease.ttl}})\n with\n deadlines[id] = clock.monotonic() + lease.ttl\n Keep the `box.space.leases:get(id)` existence check above it (cheap read,\n no fsync) — it supplies lease.ttl and preserves the NOT_FOUND-raises\n contract the gRPC stream handler depends on (see L169-171).\n3. revoke() ~L150: after `box.space.leases:delete(id)`, clear\n `deadlines[id] = nil`.\n4. time_to_live() ~L236: REPLACE `lease.expiry_time` read with `deadlines[id]`.\n If deadlines[id] is nil (lease loaded but not yet rebuilt), fall back to\n `clock.monotonic() + lease.granted_ttl`. remaining = max(0, floor(dl - now)).\n5. expiry_loop() L287-338: REPLACE the `box.space.leases.index.expiry_time`\n scan (L302-309) with a scan of `deadlines`: collect ids where\n `deadline \u003c= now`. Plain full-table scan is fine (numeric compares in Lua,\n runs every 500ms); a min-heap (etcd's leaseExpiredNotifier shape) is the\n optional optimization if lease counts get large. revoke() already nils the\n map entry on success.\n\n=== REBUILD ON PROMOTE ===\nAdd lease.M.rebuild_deadlines():\n clears `deadlines`, then for each tuple in box.space.leases:pairs() sets\n deadlines[tuple.id] = clock.monotonic() + tuple.ttl\nCall it in the RW branch of the box.watch('box.status', ...) callback in\napp/roles/etcd.lua (L341-353), immediately before lease.start_expiry().\nThis resets every inherited lease's deadline to a full-TTL grace period on the\nnew leader — exactly etcd's failover behavior.\n\n=== LATENT BUG THIS ALSO FIXES ===\nexpiry_time is currently computed as clock.monotonic()+ttl and REPLICATED.\nclock.monotonic() is process-local (relative to boot), so the persisted value\nis meaningless on any other node. Today a promoted replica's fiber scans\ninherited expiry_time values from a different monotonic timeline — could\nexpire leases instantly or never. Rebuild-on-promote with the new leader's own\nclock removes this entirely."}NULL2026-05-20T07:39:02Z
dcd911a2-525b-42a5-ba99-d233997fc980tarantool-etcd-kbccreatedEugene BlikhNULL2026-05-19T17:11:01Z
dd019f0d-8692-4c41-8f1b-bb1af4927659tarantool-etcd-8ssupdatedEugene Blikh{"id":"tarantool-etcd-8ss","title":"Example 2: 3-node EE replicaset self-hosting its own etcd config (file → etcd migration)","description":"Add examples/tarantool-ee-self-hosted-etcd: boot a 3-instance EE replicaset (election failover) from a local cluster-config.yaml where every node runs app.roles.etcd (replicated KV store, read_pref=any). Seed the cluster's OWN etcd store with that config, then rolling-restart each instance to bootstrap from TT_CONFIG_ETCD_* (no --config). Document the cold-boot circularity: self-hosted etcd-config is HA under rolling restart but needs the local file retained as a cold-boot seed. Justfile + README + cluster-config.yaml.","status":"in_progress","priority":2,"issue_type":"feature","assignee":"Eugene Blikh","owner":"bigbes@gmail.com","created_at":"2026-05-20T11:16:17Z","created_by":"Eugene Blikh","updated_at":"2026-05-20T11:16:28Z","started_at":"2026-05-20T11:16:28Z"}{"notes":"Files written + phases 1-2 (up-file/seed/probe/config-show) verified on Community Tarantool 3.8. Ports 3501-3503/2382-2482-2582 (distinct from example-1's 3401/2379). migrate+reload need an EE binary (config.etcd source) so were not run here; mechanics mirror the working tarantool-ee-config example. EE guard on migrate verified to fire."}NULL2026-05-20T14:22:44Z
df2b94c8-bd36-41b6-9ec4-b110aacf7d66tarantool-etcd-huolabel_addedEugene BlikhNULLNULLAdded label: milestone:m2-production2026-05-21T14:37:05Z
df3a88fb-c2b8-4d6f-9361-b23f36715f46tarantool-etcd-1dkcreatedEugene BlikhNULL2026-05-20T09:55:21Z
df888647-1004-458a-ab8c-f20d22c88a16tarantool-etcd-16dcreatedEugene BlikhNULL2026-05-20T08:47:58Z
df9b999b-634b-4d55-b671-2e8250c3f08ctarantool-etcd-acplabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:35Z
dfa2b7f3-da7b-4bed-b088-cf7c47f382ectarantool-etcd-9arcreatedEugene BlikhNULL2026-05-19T17:54:46Z
e349074e-24a3-48d4-905a-f9fe17c88bb9tarantool-etcd-929label_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:17Z
e793c7f3-1499-4923-80a5-477a82c1c79ctarantool-etcd-bdflabel_addedEugene BlikhNULLNULLAdded label: milestone:m2-production2026-05-21T14:37:04Z
e91e2679-fee3-46d9-8484-85e92b91b5f6tarantool-etcd-216createdEugene BlikhNULL2026-05-19T17:54:37Z
e9c442ad-e8e2-4436-affe-23f24afd4ad2tarantool-etcd-4yblabel_addedEugene BlikhNULLNULLAdded label: milestone:m5-clustering2026-05-21T14:37:39Z
eb63d18a-8e99-45da-81bc-084a910243c7tarantool-etcd-5zxlabel_addedEugene BlikhNULLNULLAdded label: milestone:m4-iproto-parity2026-05-21T14:37:15Z
ec4fdd6f-11f7-4bea-990e-e73e6cfc35fdtarantool-etcd-ovolabel_addedEugene BlikhNULLNULLAdded label: milestone:m5-clustering2026-05-21T14:37:38Z
ed0c9b90-0a6d-4bfa-a337-7c8a4e6741cbtarantool-etcd-35ycreatedEugene BlikhNULL2026-05-20T09:31:01Z
eedfcc8b-a1c9-45c3-af4a-4ad6e93734b9tarantool-etcd-w6zcreatedEugene BlikhNULL2026-05-19T17:54:44Z