Documentation
¶
Overview ¶
Package clone is the engine. It knows nothing engine-specific: it asks each driver for a Plan, then runs every stream of every database through one global, weighted pool.
Scheduling:
- The pool (Options.Parallel slots) is shared by all databases, so a slot freed by a small database is picked up immediately by a big one instead of sitting idle.
- A stream holds Weight slots — mongodump with 4 parallel collections costs 4.
- Streams are dispatched biggest first across all databases (longest-processing-time first), which keeps the tail of the run short.
- Options.Workers caps the streams of one database, so one huge database cannot take every connection to staging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
Click to show internal directories.
Click to hide internal directories.