Files
greptimedb/mito2/worker/index.html
T

6 lines
13 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Structs and utilities for writing regions."><title>mito2::worker - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-1ed95124.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mito2" data-themes="" data-resource-suffix="" data-rustdoc-version="1.98.1 (48a229cea 2026-09-01)" data-channel="1.98.1" data-search-js="search-9944d736.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module worker</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../mito2/index.html">mito2</a><span class="version">1.4.0-alpha.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module worker</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate mito2</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">mito2</a></div><h1>Module <span>worker</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/mito2/worker.rs.html#15-2491">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Structs and utilities for writing regions.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="handle_alter/index.html" title="mod mito2::worker::handle_alter">handle_<wbr>alter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling alter related requests.</dd><dt><a class="mod" href="handle_apply_staging/index.html" title="mod mito2::worker::handle_apply_staging">handle_<wbr>apply_<wbr>staging</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_bulk_insert/index.html" title="mod mito2::worker::handle_bulk_insert">handle_<wbr>bulk_<wbr>insert</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles bulk insert requests.</dd><dt><a class="mod" href="handle_catchup/index.html" title="mod mito2::worker::handle_catchup">handle_<wbr>catchup</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling catchup request and the end of a region’s wait for its Leader lease.</dd><dt><a class="mod" href="handle_close/index.html" title="mod mito2::worker::handle_close">handle_<wbr>close</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling close request.</dd><dt><a class="mod" href="handle_compaction/index.html" title="mod mito2::worker::handle_compaction">handle_<wbr>compaction</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_copy_region/index.html" title="mod mito2::worker::handle_copy_region">handle_<wbr>copy_<wbr>region</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_create/index.html" title="mod mito2::worker::handle_create">handle_<wbr>create</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling create request.</dd><dt><a class="mod" href="handle_drop/index.html" title="mod mito2::worker::handle_drop">handle_<wbr>drop</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling drop request.</dd><dt><a class="mod" href="handle_enter_staging/index.html" title="mod mito2::worker::handle_enter_staging">handle_<wbr>enter_<wbr>staging</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_flush/index.html" title="mod mito2::worker::handle_flush">handle_<wbr>flush</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling flush related requests.</dd><dt><a class="mod" href="handle_manifest/index.html" title="mod mito2::worker::handle_manifest">handle_<wbr>manifest</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles manifest.</dd><dt><a class="mod" href="handle_open/index.html" title="mod mito2::worker::handle_open">handle_<wbr>open</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling open request.</dd><dt><a class="mod" href="handle_rebuild_index/index.html" title="mod mito2::worker::handle_rebuild_index">handle_<wbr>rebuild_<wbr>index</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles index build requests.</dd><dt><a class="mod" href="handle_reload/index.html" title="mod mito2::worker::handle_reload">handle_<wbr>reload</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Reloading a region fenced by a manifest version conflict, or by a failed tail replay round
that found a newer manifest.</dd><dt><a class="mod" href="handle_remap/index.html" title="mod mito2::worker::handle_remap">handle_<wbr>remap</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_tail_replay/index.html" title="mod mito2::worker::handle_tail_replay">handle_<wbr>tail_<wbr>replay</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Starting, applying and ending background replays of pending WAL tails, and discarding
pending tails without replaying them.</dd><dt><a class="mod" href="handle_truncate/index.html" title="mod mito2::worker::handle_truncate">handle_<wbr>truncate</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling truncate related requests.</dd><dt><a class="mod" href="handle_write/index.html" title="mod mito2::worker::handle_write">handle_<wbr>write</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling write requests.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DeferredLeaseWork.html" title="struct mito2::worker::DeferredLeaseWork">Deferred<wbr>Lease<wbr>Work</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Work a region runs once it is a writable leader with its Leader lease.</dd><dt><a class="struct" href="struct.PendingDdls.html" title="struct mito2::worker::PendingDdls">Pending<wbr>Ddls</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Lifecycle requests waiting for a region manifest operation to finish.</dd><dt><a class="struct" href="struct.RegionWorker.html" title="struct mito2::worker::RegionWorker">Region<wbr>Worker</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Worker to write and alter regions bound to it.</dd><dt><a class="struct" href="struct.RegionWorkerLoop.html" title="struct mito2::worker::RegionWorkerLoop">Region<wbr>Worker<wbr>Loop</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Background worker loop to handle requests.</dd><dt><a class="struct" href="struct.StalledRequests.html" title="struct mito2::worker::StalledRequests">Stalled<wbr>Requests</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Buffer for stalled write requests.</dd><dt><a class="struct" href="struct.WorkerGroup.html" title="struct mito2::worker::WorkerGroup">Worker<wbr>Group</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>A fixed size group of <a href="struct.RegionWorker.html" title="struct mito2::worker::RegionWorker">RegionWorkers</a>.</dd><dt><a class="struct" href="struct.WorkerListener.html" title="struct mito2::worker::WorkerListener">Worker<wbr>Listener</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Wrapper that only calls event listener in tests.</dd><dt><a class="struct" href="struct.WorkerStarter.html" title="struct mito2::worker::WorkerStarter">Worker<wbr>Starter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Worker start config.</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.CHECK_REGION_INTERVAL.html" title="constant mito2::worker::CHECK_REGION_INTERVAL">CHECK_<wbr>REGION_<wbr>INTERVAL</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Interval to check whether regions should flush.</dd><dt><a class="constant" href="constant.DROPPING_MARKER_FILE.html" title="constant mito2::worker::DROPPING_MARKER_FILE">DROPPING_<wbr>MARKER_<wbr>FILE</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="constant" href="constant.MAX_INITIAL_CHECK_DELAY_SECS.html" title="constant mito2::worker::MAX_INITIAL_CHECK_DELAY_SECS">MAX_<wbr>INITIAL_<wbr>CHECK_<wbr>DELAY_<wbr>SECS</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Max delay to check region periodical tasks.</dd><dt><a class="constant" href="constant.MAX_PENDING_DDLS_PER_REGION.html" title="constant mito2::worker::MAX_PENDING_DDLS_PER_REGION">MAX_<wbr>PENDING_<wbr>DDLS_<wbr>PER_<wbr>REGION</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Maximum number of pending DDL requests per region.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.drain_ended_staging.html" title="fn mito2::worker::drain_ended_staging">drain_<wbr>ended_<wbr>staging</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Has the worker handle the writes it stalled while the region was ending staging, and waits
until it has. Await it only as <code>MitoRegion::end_staging</code> does.</dd><dt><a class="fn" href="fn.index_registry.html" title="fn mito2::worker::index_registry">index_<wbr>registry</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Constructs the shared registry for region creation and index maintenance.</dd><dt><a class="fn" href="fn.reclaim_legacy_series_cache.html" title="fn mito2::worker::reclaim_legacy_series_cache">reclaim_<wbr>legacy_<wbr>series_<wbr>cache</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Reclaim the retired, versioned local sidecar cache. Only numeric region directories
belong to this format. Leave unrelated directories and the cache mount itself intact.</dd><dt><a class="fn" href="fn.region_id_to_index.html" title="fn mito2::worker::region_id_to_index">region_<wbr>id_<wbr>to_<wbr>index</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.worker_init_check_delay.html" title="fn mito2::worker::worker_init_check_delay">worker_<wbr>init_<wbr>check_<wbr>delay</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Computes a initial check delay for a worker.</dd><dt><a class="fn" href="fn.write_cache_from_config.html" title="fn mito2::worker::write_cache_from_config">write_<wbr>cache_<wbr>from_<wbr>config</a></dt></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.RequestBuffer.html" title="type mito2::worker::RequestBuffer">Request<wbr>Buffer</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="type" href="type.WorkerId.html" title="type mito2::worker::WorkerId">Worker<wbr>Id</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Identifier for a worker.</dd></dl></section></div></main></body></html>