@delali/narsil 0.3.1-next.145 → 0.3.1-next.149
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.
- package/dist/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/analysis-change-ZCJNYBJM.mjs +39 -0
- package/dist/{analysis-change-entry-V4SQQSXQ.mjs → analysis-change-entry-YN3ELL6C.mjs} +1 -1
- package/dist/browser/{analysis-change-QTCQ5ETU.mjs → analysis-change-M65AZQQG.mjs} +8 -5
- package/dist/browser/{analysis-change-entry-KYEQSP3I.mjs → analysis-change-entry-H3YIOLXZ.mjs} +1 -1
- package/dist/browser/{chunk-GP4QLUQM.mjs → chunk-2JABMB4S.mjs} +10 -6
- package/dist/browser/{chunk-5WYWLTM5.mjs → chunk-4DYLCICG.mjs} +2 -2
- package/dist/browser/{chunk-75PMIFQA.mjs → chunk-4RD3AFSB.mjs} +1 -1
- package/dist/browser/{chunk-XWMEGKDC.mjs → chunk-5V74FFZE.mjs} +2 -2
- package/dist/browser/{chunk-PMBSBSCN.mjs → chunk-6OWX3OP2.mjs} +2 -2
- package/dist/browser/chunk-BRWY3JCN.mjs +678 -0
- package/dist/browser/{chunk-ZALEKEUH.mjs → chunk-BVX2MEHA.mjs} +306 -607
- package/dist/browser/{chunk-FXPMF65P.mjs → chunk-D6UFGBF5.mjs} +15 -45
- package/dist/browser/{chunk-QNDWMPV2.mjs → chunk-IAXZAVYL.mjs} +25 -66
- package/dist/browser/chunk-JNOAKDUM.mjs +31 -0
- package/dist/browser/{chunk-BTMRV5MY.mjs → chunk-KAEVGLYN.mjs} +2 -2
- package/dist/browser/{chunk-FHO5N7FD.mjs → chunk-LURXVCHG.mjs} +1 -1
- package/dist/browser/chunk-MPK76GVS.mjs +63 -0
- package/dist/browser/{chunk-6OFS7RUN.mjs → chunk-NVEJJP4R.mjs} +1 -1
- package/dist/browser/{chunk-U77XQJOY.mjs → chunk-ODQP7P3H.mjs} +455 -66
- package/dist/browser/{chunk-IFGTRRPU.mjs → chunk-PIS7ZAP7.mjs} +3 -25
- package/dist/browser/{chunk-XIHLIMFX.mjs → chunk-QMNZFFD3.mjs} +4 -3
- package/dist/browser/{chunk-AOKLYVTT.mjs → chunk-SRL47USS.mjs} +2 -2
- package/dist/browser/chunk-TY7L6OXO.mjs +69 -0
- package/dist/browser/{chunk-LGJ6XMH5.mjs → chunk-W643QV3L.mjs} +6 -5
- package/dist/browser/chunk-WXLBZJMT.mjs +25 -0
- package/dist/browser/{chunk-ZKVDQ5ZH.mjs → chunk-XILIT5MT.mjs} +8 -8
- package/dist/browser/{cold-module-Y2IJAP7S.mjs → cold-module-A5S6JFDN.mjs} +20 -20
- package/dist/browser/{durability-wiring-MLXZ5QQF.mjs → durability-wiring-W5AVV3RF.mjs} +53 -30
- package/dist/browser/gzip-5S7ROJFJ.mjs +1 -0
- package/dist/browser/import-PTT63AGK.mjs +12 -0
- package/dist/browser/{module-5LMDGXQH.mjs → module-CEKA7MQH.mjs} +13 -10
- package/dist/browser/module-X5PGOE47.mjs +4288 -0
- package/dist/browser/{phrase-module-KXNRTWCS.mjs → phrase-module-CNKMUY4U.mjs} +2 -1
- package/dist/browser/pool-DTYSPBMQ.mjs +296 -0
- package/dist/{restore-queue-UAVGBSJG.mjs → browser/restore-queue-DD4LWZK7.mjs} +2 -2
- package/dist/browser/{runtime-ZNEGK33G.mjs → runtime-D2ULZGCN.mjs} +3 -2
- package/dist/browser/{snapshot-2EGS2FYU.mjs → snapshot-DQ6A4PQP.mjs} +18 -14
- package/dist/browser/{write-WMZA6NSF.mjs → write-MAGRAIEH.mjs} +14 -11
- package/dist/{capabilities-CNnzGtqP.d.ts → capabilities-BT-HLDC8.d.ts} +2 -2
- package/dist/{chunk-FRJ5RGX7.mjs → chunk-2HJWQPR6.mjs} +2 -2
- package/dist/{chunk-DKMZ7JFW.mjs → chunk-3BVGJ4JR.mjs} +10 -4
- package/dist/{chunk-QYMAYU7M.mjs → chunk-3HV7M5OJ.mjs} +155 -149
- package/dist/chunk-3MXV3VHR.mjs +46 -0
- package/dist/{chunk-6FOJKNUR.mjs → chunk-3SBJVQLL.mjs} +2 -2
- package/dist/{chunk-PRID7CA6.mjs → chunk-3TVDTACC.mjs} +1 -1
- package/dist/{chunk-RTVAWNUL.mjs → chunk-5WB2A3XU.mjs} +9 -6
- package/dist/{chunk-LWFK3TC2.mjs → chunk-65WCV5JO.mjs} +1 -1
- package/dist/{chunk-G6Q5DEF5.mjs → chunk-6BWLDLS3.mjs} +3 -46
- package/dist/{chunk-W6M4RRAT.mjs → chunk-6C5EX2QR.mjs} +3 -3
- package/dist/{chunk-HOC5JP2H.mjs → chunk-6F6USYII.mjs} +119 -11
- package/dist/{chunk-7523VCM4.mjs → chunk-7HKWO4BJ.mjs} +7 -7
- package/dist/{chunk-ONDEEBTA.mjs → chunk-7N223GWV.mjs} +2 -2
- package/dist/{chunk-UGQULMSU.mjs → chunk-ADBS5XRI.mjs} +10 -10
- package/dist/{chunk-MJTEU2XK.mjs → chunk-AWNHDBKV.mjs} +429 -73
- package/dist/{chunk-2E2ZFOPT.mjs → chunk-B2FTZNNF.mjs} +2 -2
- package/dist/{chunk-NWTEJ2T7.mjs → chunk-B7XIOAMK.mjs} +3 -3
- package/dist/{chunk-W55X2BYN.mjs → chunk-BEZH7VEH.mjs} +1 -1
- package/dist/chunk-BTPGQC6Z.mjs +27 -0
- package/dist/{chunk-KG5N7LE6.mjs → chunk-CYYSZPVV.mjs} +11 -11
- package/dist/{chunk-HTMUGEFU.mjs → chunk-DOY6EG76.mjs} +6 -6
- package/dist/{chunk-UHVTEVF5.mjs → chunk-F22IOCR2.mjs} +10 -6
- package/dist/{chunk-FTQLF5JI.mjs → chunk-IRWP524D.mjs} +1 -1
- package/dist/{chunk-XLAI4OIO.mjs → chunk-IZT3G24Q.mjs} +2 -2
- package/dist/{chunk-SE7MKJVK.mjs → chunk-J7M73VY7.mjs} +1 -1
- package/dist/chunk-KAKQ74LS.mjs +53 -0
- package/dist/{chunk-GVPYMSLO.mjs → chunk-KYVRZAYP.mjs} +1 -1
- package/dist/{chunk-F442VZUL.mjs → chunk-KZ5GQE4Z.mjs} +5 -5
- package/dist/{chunk-WDEWU46C.mjs → chunk-KZQIVGW7.mjs} +2 -2
- package/dist/{chunk-7AJAW6NN.mjs → chunk-L7TIAYPX.mjs} +8 -8
- package/dist/{chunk-GRFXSEFF.mjs → chunk-LDGGR7YT.mjs} +4 -81
- package/dist/{chunk-WMIV7PJ7.mjs → chunk-LJ4ENXOD.mjs} +15 -14
- package/dist/chunk-LQG5G2LY.mjs +39 -0
- package/dist/{chunk-IQHZMCLX.mjs → chunk-MDF6PDIA.mjs} +2 -0
- package/dist/{chunk-QXH2CS4V.mjs → chunk-NVTFQFUL.mjs} +7 -26
- package/dist/{chunk-5K2JHKM3.mjs → chunk-NYSONUB7.mjs} +1 -1
- package/dist/{chunk-OH7SX5MY.mjs → chunk-O4KUNDVF.mjs} +12 -10
- package/dist/{chunk-EBIHRL7B.mjs → chunk-Q2UL2TPC.mjs} +1 -1
- package/dist/{chunk-RNUP6WZ6.mjs → chunk-QEYF2SQ6.mjs} +2 -2
- package/dist/{chunk-RVBUQITB.mjs → chunk-QN5WVV5K.mjs} +7 -7
- package/dist/{chunk-RIIUZJQ3.mjs → chunk-QYRNLLLI.mjs} +1 -1
- package/dist/{chunk-BTARFTEN.mjs → chunk-SOUZMPME.mjs} +4 -4
- package/dist/{chunk-ISUOSACK.mjs → chunk-T4CJDBBE.mjs} +1 -1
- package/dist/{chunk-DHEJAGVW.mjs → chunk-TTCKT2RT.mjs} +5 -5
- package/dist/{chunk-QU2XF7VI.mjs → chunk-U2726TL5.mjs} +5 -4
- package/dist/{chunk-LYKUJNAV.mjs → chunk-U46IZNCW.mjs} +2 -2
- package/dist/{chunk-SNB4DYL3.mjs → chunk-U6NE6RCV.mjs} +4 -4
- package/dist/{chunk-SA52N7G3.mjs → chunk-VP6XRMWR.mjs} +4 -4
- package/dist/{chunk-YUCGFPMS.mjs → chunk-VQDZVWN3.mjs} +449 -405
- package/dist/{chunk-IWVEG5CX.mjs → chunk-XIHUI4KB.mjs} +2 -2
- package/dist/{chunk-IV2XTSS2.mjs → chunk-XKPNKR3V.mjs} +16 -46
- package/dist/{chunk-UQS5PAS5.mjs → chunk-YGQOPB2Z.mjs} +1 -1
- package/dist/{chunk-SVO6NV4D.mjs → chunk-YKEHQUSZ.mjs} +4 -4
- package/dist/{chunk-6Z22L5RN.mjs → chunk-ZAYWOHVG.mjs} +1 -1
- package/dist/{chunk-QLDLQW36.mjs → chunk-ZEKDO7YX.mjs} +2 -2
- package/dist/chunk-ZXNNR73R.mjs +31 -0
- package/dist/{chunk-VJS4JFBQ.mjs → chunk-ZXX5GZEX.mjs} +3 -1
- package/dist/{chunk-X5SBWARI.mjs → chunk-ZYKUD5NX.mjs} +9 -7
- package/dist/{client-DoYPHcUn.d.ts → client-Cn3gNxUU.d.ts} +3 -3
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +2 -0
- package/dist/{cold-module-NUD332YD.mjs → cold-module-2WWGBFJC.mjs} +36 -33
- package/dist/{config-CuUfls_H.d.ts → config-CfhH1IWQ.d.ts} +1 -1
- package/dist/{config-Dzs46im6.d.ts → config-aIsy7mcL.d.ts} +52 -1
- package/dist/direct-executor-QLVHMELJ.mjs +24 -0
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +150 -255
- package/dist/{durability-wiring-K7RDXWL6.mjs → durability-wiring-GNWQSZI3.mjs} +67 -42
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-C0ifUEcm.d.ts → engine-CJRUHXgf.d.ts} +1 -1
- package/dist/gzip-F4HMIEEQ.mjs +1 -0
- package/dist/import-DX55PN4G.mjs +41 -0
- package/dist/index.browser.mjs +7 -4
- package/dist/index.d.ts +539 -5
- package/dist/index.mjs +22 -16
- package/dist/index.react-native.mjs +19 -0
- package/dist/{long-query-thread-FKVHRCHF.mjs → long-query-thread-SCUE62TO.mjs} +20 -17
- package/dist/{module-GJUKW5VU.mjs → module-HW6IXUM6.mjs} +601 -108
- package/dist/{module-TMFIWOD2.mjs → module-V5K4ZP23.mjs} +29 -23
- package/dist/{paged-partition-archive-WNUEMYWM.mjs → paged-partition-archive-FDIIWZNR.mjs} +31 -25
- package/dist/partial-words.mjs +5 -5
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +28 -22
- package/dist/{phrase-module-OMY3QQV7.mjs → phrase-module-OUQIRUQU.mjs} +1 -1
- package/dist/pool-UPV5PVPY.mjs +298 -0
- package/dist/react-native/chunks/analysis-change-HGW3L6NY.mjs +893 -0
- package/dist/react-native/chunks/analysis-change-entry-BNRU6STO.mjs +1 -0
- package/dist/react-native/chunks/chunk-2J2727V4.mjs +495 -0
- package/dist/react-native/chunks/chunk-3CTWSQRW.mjs +1251 -0
- package/dist/react-native/chunks/chunk-5FV4ZEVA.mjs +2619 -0
- package/dist/react-native/chunks/chunk-7VWQLEFV.mjs +642 -0
- package/dist/react-native/chunks/chunk-AAAETEJK.mjs +27 -0
- package/dist/react-native/chunks/chunk-AM7RSBPF.mjs +32 -0
- package/dist/react-native/chunks/chunk-B6OD63Z3.mjs +997 -0
- package/dist/react-native/chunks/chunk-BRNAVOKP.mjs +177 -0
- package/dist/react-native/chunks/chunk-DKJTZ625.mjs +207 -0
- package/dist/react-native/chunks/chunk-FKGG4UOF.mjs +177 -0
- package/dist/{browser/chunk-K7UFXEJS.mjs → react-native/chunks/chunk-GV5KFQ6M.mjs} +12 -6
- package/dist/react-native/chunks/chunk-HURV3ASY.mjs +4416 -0
- package/dist/react-native/chunks/chunk-IO2SMUQD.mjs +10 -0
- package/dist/react-native/chunks/chunk-JV6VQY2S.mjs +17 -0
- package/dist/react-native/chunks/chunk-KUJOBRKS.mjs +217 -0
- package/dist/react-native/chunks/chunk-KWRW5U65.mjs +226 -0
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +110 -0
- package/dist/react-native/chunks/chunk-LQ6Q4L5B.mjs +360 -0
- package/dist/react-native/chunks/chunk-LQAKO5QV.mjs +523 -0
- package/dist/react-native/chunks/chunk-LRGWK367.mjs +11 -0
- package/dist/react-native/chunks/chunk-LVIKKAA6.mjs +93 -0
- package/dist/react-native/chunks/chunk-NFGBOI46.mjs +14 -0
- package/dist/react-native/chunks/chunk-NNE4VDMM.mjs +8 -0
- package/dist/react-native/chunks/chunk-PPEPTUVV.mjs +56 -0
- package/dist/react-native/chunks/chunk-PSWKQVVT.mjs +9 -0
- package/dist/react-native/chunks/chunk-PU55IOG4.mjs +910 -0
- package/dist/react-native/chunks/chunk-QC4ZRBSX.mjs +270 -0
- package/dist/react-native/chunks/chunk-R4EEMYM6.mjs +21 -0
- package/dist/react-native/chunks/chunk-R4OPUZQ5.mjs +86 -0
- package/dist/react-native/chunks/chunk-SLGIAD6B.mjs +2634 -0
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +25 -0
- package/dist/react-native/chunks/chunk-TLYD7IJ2.mjs +23 -0
- package/dist/react-native/chunks/chunk-UFNCLEQM.mjs +73 -0
- package/dist/react-native/chunks/chunk-YH7W556M.mjs +179 -0
- package/dist/react-native/chunks/chunk-YJSMEKRE.mjs +22385 -0
- package/dist/react-native/chunks/chunk-ZCKNBPQ4.mjs +79 -0
- package/dist/react-native/chunks/cold-module-TSFWLYWC.mjs +755 -0
- package/dist/react-native/chunks/durability-wiring-PZR6KOQK.mjs +4509 -0
- package/dist/react-native/chunks/gzip.react-native-7JWCLVOB.mjs +3 -0
- package/dist/react-native/chunks/import-VTODLPLO.mjs +22 -0
- package/dist/{browser/module-Q6VFGLMG.mjs → react-native/chunks/module-JBBH6PZH.mjs} +609 -144
- package/dist/react-native/chunks/module-VEK2KCKU.mjs +25 -0
- package/dist/react-native/chunks/phrase-module-76UAPPSG.mjs +329 -0
- package/dist/react-native/chunks/pool-CD4ANYUI.mjs +296 -0
- package/dist/react-native/chunks/release-D7ZTIANM.mjs +33 -0
- package/dist/react-native/chunks/replace-IMZUVUOE.mjs +57 -0
- package/dist/{browser/restore-queue-SOAHKZSQ.mjs → react-native/chunks/restore-queue-OI5EH7R3.mjs} +2 -2
- package/dist/react-native/chunks/runtime-3MCDLJAF.mjs +559 -0
- package/dist/react-native/chunks/snapshot-AUZMEV36.mjs +1205 -0
- package/dist/react-native/chunks/write-DDC2QBRJ.mjs +197 -0
- package/dist/react-native/partial-words.mjs +733 -0
- package/dist/react-native/pattern.mjs +2442 -0
- package/dist/react-native/synonyms.mjs +460 -0
- package/dist/react.d.ts +7 -7
- package/dist/react.mjs +2 -0
- package/dist/{rerank-ZZ5CHKLW.mjs → rerank-3W54N6P2.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-queue-BQWWNNQI.mjs +41 -0
- package/dist/{runtime-RAOCKSYA.mjs → runtime-L2DZYY6N.mjs} +5 -5
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +32 -28
- package/dist/{snapshot-DB5ZVCDN.mjs → snapshot-EHXTOTW5.mjs} +39 -33
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-ChWp0wrF.d.ts → tasks-C4ElXr4P.d.ts} +2 -2
- package/dist/thread-I7DVHHW7.mjs +31 -0
- package/dist/vector/search-worker.mjs +7 -5
- package/dist/workers/entry.mjs +9 -9
- package/dist/{write-KZVTLGCI.mjs → write-SDJXXQ2G.mjs} +29 -23
- package/package.json +88 -7
- package/dist/analysis-change-D5APH4Z3.mjs +0 -34
- package/dist/browser/import-FTMLTPGQ.mjs +0 -9
- package/dist/direct-executor-FDQYQEJQ.mjs +0 -22
- package/dist/import-6KXFY6XI.mjs +0 -35
- package/dist/thread-OV6T555H.mjs +0 -28
- /package/dist/{chunk-22YPZVMG.mjs → chunk-ZXNQEW43.mjs} +0 -0
package/dist/distribution.mjs
CHANGED
|
@@ -1,65 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-HTMUGEFU.mjs';
|
|
3
|
-
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-ISUOSACK.mjs';
|
|
4
|
-
import { closePartitionWriter, replaySyncedWal } from './chunk-X5SBWARI.mjs';
|
|
5
|
-
import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, readSnapshotArchive, writeArchiveFile, sourceIndexNameOf } from './chunk-7AJAW6NN.mjs';
|
|
1
|
+
import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, readSnapshotArchive, writeArchiveFile, sourceIndexNameOf } from './chunk-L7TIAYPX.mjs';
|
|
6
2
|
import { createByteReader } from './chunk-CZQ33DLW.mjs';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import './chunk-
|
|
3
|
+
import { routableAllocation, resolvePartitionId, resolvePrimaryAssignment, resolveNodeTargets, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-B7XIOAMK.mjs';
|
|
4
|
+
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-DOY6EG76.mjs';
|
|
5
|
+
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, requireRestoreMemory, archiveFootprint, storedBytesOfSegments } from './chunk-VP6XRMWR.mjs';
|
|
6
|
+
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-T4CJDBBE.mjs';
|
|
7
|
+
import { closePartitionWriter, replaySyncedWal } from './chunk-ZYKUD5NX.mjs';
|
|
8
|
+
import { indexMetadataOf, loadPartitionSegments, openManifestPayload, listedKeysOf, decodeManifestPayload, readSegmentManifest } from './chunk-XKPNKR3V.mjs';
|
|
9
|
+
import { readVectorFile } from './chunk-KZ5GQE4Z.mjs';
|
|
10
|
+
import { bindWriteBlockLookup, bindEngineWriteBlock, bindIndexReads, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, backupKeys, validateBackupName, BACKUP_MANIFEST_READS_AT_ONCE, storedFilesOf, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-YKEHQUSZ.mjs';
|
|
11
|
+
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, refuseEncodeWithoutRoom, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, MAX_SOURCE_ID_LENGTH, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-LDGGR7YT.mjs';
|
|
12
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-LDGGR7YT.mjs';
|
|
13
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, indexConfigFromSettings, metadataWithBm25, indexConfigKey, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, isRecord2, decodeIndexSettings, HIDDEN_GENERATION_PREFIX, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, RESHARD_FORWARD_BATCH_DOCUMENTS, storedSynonymSetOf, RESHARD_RETRY_DELAY_MS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, TEARDOWN_CAS_ATTEMPTS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS } from './chunk-U6NE6RCV.mjs';
|
|
14
|
+
import { restoredConfigFields, restoredEmbedding } from './chunk-IRWP524D.mjs';
|
|
15
|
+
import './chunk-ZXNNR73R.mjs';
|
|
16
|
+
import './chunk-7N223GWV.mjs';
|
|
16
17
|
import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import {
|
|
19
|
-
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-QLDLQW36.mjs';
|
|
18
|
+
import './chunk-3BVGJ4JR.mjs';
|
|
19
|
+
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-ZEKDO7YX.mjs';
|
|
20
20
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
21
21
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
22
|
-
import
|
|
23
|
-
import './chunk-MJTEU2XK.mjs';
|
|
22
|
+
import './chunk-AWNHDBKV.mjs';
|
|
24
23
|
import './chunk-37CD3OKS.mjs';
|
|
25
24
|
import './chunk-DJHHF2L5.mjs';
|
|
26
25
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
27
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
26
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-CYYSZPVV.mjs';
|
|
28
27
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-
|
|
31
|
-
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest, manifestFileRefs } from './chunk-
|
|
28
|
+
import './chunk-QN5WVV5K.mjs';
|
|
29
|
+
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-U2726TL5.mjs';
|
|
30
|
+
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest, manifestFileRefs } from './chunk-6C5EX2QR.mjs';
|
|
32
31
|
import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5QMHMELB.mjs';
|
|
33
|
-
import { bindRerankWindowSource, rerankWindowCapOf, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, openChecksummedEnvelope, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, crc32Init, crc32Final, crc32Update, yieldToEventLoop, providedDocId, decodeIndexConfiguration, engineCoreOf } from './chunk-
|
|
34
|
-
import { runtimeHost, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBM25Shape, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-
|
|
32
|
+
import { bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, memoryFractionsOf, createMemoryMonitor, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, openChecksummedEnvelope, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, crc32Init, crc32Final, crc32Update, yieldToEventLoop, providedDocId, decodeIndexConfiguration, engineCoreOf } from './chunk-VQDZVWN3.mjs';
|
|
33
|
+
import { runtimeHost, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, readRecentMemoryFigures, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, now, listBindingOf, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-6F6USYII.mjs';
|
|
34
|
+
import { synonymModule, generateId } from './chunk-O4KUNDVF.mjs';
|
|
35
|
+
import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, holdsQuotedText, sortSignatureEntry, mergePartitionStats } from './chunk-3HV7M5OJ.mjs';
|
|
36
|
+
import { fnv1a, fnv1aUint32s } from './chunk-KAKQ74LS.mjs';
|
|
35
37
|
import './chunk-HJSN7UYG.mjs';
|
|
36
|
-
import './chunk-
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import './chunk-
|
|
41
|
-
import { getLanguage, resolveIndexAnalysis, configOfNamedSettings } from './chunk-
|
|
38
|
+
import './chunk-6BWLDLS3.mjs';
|
|
39
|
+
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-XIHUI4KB.mjs';
|
|
40
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
41
|
+
import './chunk-3MXV3VHR.mjs';
|
|
42
|
+
import { BATCH_CHUNK_SIZE, MAX_DOC_ID_LENGTH, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-EEBCDP36.mjs';
|
|
43
|
+
import { getLanguage, resolveIndexAnalysis, configOfNamedSettings } from './chunk-2HJWQPR6.mjs';
|
|
42
44
|
import './chunk-X5CV2E2B.mjs';
|
|
43
45
|
import './chunk-TGP5M5R7.mjs';
|
|
44
46
|
import './chunk-U2BKYEC7.mjs';
|
|
47
|
+
import './chunk-ZAYWOHVG.mjs';
|
|
45
48
|
import './chunk-QHPYS427.mjs';
|
|
46
|
-
import './chunk-
|
|
47
|
-
import
|
|
49
|
+
import { collectAndReturnPages } from './chunk-QYRNLLLI.mjs';
|
|
50
|
+
import './chunk-ZXNQEW43.mjs';
|
|
48
51
|
import './chunk-KOKM4PQN.mjs';
|
|
49
|
-
import { MIN_OVERSAMPLE } from './chunk-
|
|
52
|
+
import { MIN_OVERSAMPLE } from './chunk-NVTFQFUL.mjs';
|
|
53
|
+
import './chunk-LQG5G2LY.mjs';
|
|
54
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
50
55
|
import './chunk-RFBLQLLZ.mjs';
|
|
51
|
-
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE } from './chunk-
|
|
56
|
+
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE } from './chunk-U46IZNCW.mjs';
|
|
52
57
|
import './chunk-JUKYYXSP.mjs';
|
|
53
|
-
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, getNestedValue, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-
|
|
58
|
+
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, getNestedValue, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-SOUZMPME.mjs';
|
|
54
59
|
import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
|
|
55
|
-
import './chunk-
|
|
60
|
+
import { visitTokens } from './chunk-65WCV5JO.mjs';
|
|
56
61
|
import './chunk-4UMZ7KQL.mjs';
|
|
57
|
-
import './chunk-
|
|
58
|
-
import './chunk-
|
|
62
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
63
|
+
import './chunk-KYVRZAYP.mjs';
|
|
59
64
|
import { MAX_STORED_VECTOR_DIMENSION, MAX_NESTING_DEPTH } from './chunk-L5ORED7V.mjs';
|
|
60
|
-
import { joinChunks, readWhole } from './chunk-
|
|
65
|
+
import { joinChunks, readWhole } from './chunk-3TVDTACC.mjs';
|
|
61
66
|
import { MAX_DOCUMENT_ENCODING_DEPTH } from './chunk-U476IXKQ.mjs';
|
|
62
|
-
import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-
|
|
67
|
+
import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-MDF6PDIA.mjs';
|
|
63
68
|
import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-R6A773WK.mjs';
|
|
64
69
|
import { compareCodePoints, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
65
70
|
import { encode, decode } from '@msgpack/msgpack';
|
|
@@ -4857,7 +4862,7 @@ function startLeadingTerm(deps, indexName, partitionId, assignment) {
|
|
|
4857
4862
|
inLeadingPartitionQueue({ indexName, partitionId, assignment, deps }, async () => void 0).catch(() => void 0);
|
|
4858
4863
|
}
|
|
4859
4864
|
|
|
4860
|
-
// src/
|
|
4865
|
+
// src/engine/memory/document-bound.ts
|
|
4861
4866
|
var SINGLE_CLASS_REPEATED = /^\[(?:[^\\\]]|\\.)*\]\+$/;
|
|
4862
4867
|
function termsPerNormalizedUnit(language) {
|
|
4863
4868
|
const ngramSize = language.tokenizer?.ngramSize;
|
|
@@ -4923,7 +4928,31 @@ function builtInTermBytes(text2, termsPerUnit, partial) {
|
|
|
4923
4928
|
const termBytes = DISTINCT_TERM_HEAP_BYTES + (partial ? PARTIAL_SPELLING_HEAP_BYTES : 0);
|
|
4924
4929
|
return terms * termBytes + normalizedUnits * TERM_UNIT_HEAP_BYTES;
|
|
4925
4930
|
}
|
|
4931
|
+
function countedTermBytes(text2, analysis, partial) {
|
|
4932
|
+
const distinct = /* @__PURE__ */ new Set();
|
|
4933
|
+
let units = 0;
|
|
4934
|
+
visitTokens(
|
|
4935
|
+
text2,
|
|
4936
|
+
analysis.language,
|
|
4937
|
+
{ stem: false, removeStopWords: false, customTokenizer: analysis.customTokenizer },
|
|
4938
|
+
(token) => {
|
|
4939
|
+
distinct.add(token);
|
|
4940
|
+
units += token.length;
|
|
4941
|
+
}
|
|
4942
|
+
);
|
|
4943
|
+
const termBytes = DISTINCT_TERM_HEAP_BYTES + (partial ? PARTIAL_SPELLING_HEAP_BYTES : 0);
|
|
4944
|
+
return distinct.size * termBytes + units * TERM_UNIT_HEAP_BYTES;
|
|
4945
|
+
}
|
|
4926
4946
|
function createDocumentBound(analysis) {
|
|
4947
|
+
return createBound(
|
|
4948
|
+
analysis,
|
|
4949
|
+
(text2, termsPerUnit, partial) => analysis.customTokenizer === void 0 ? builtInTermBytes(text2, termsPerUnit, partial) : customTermBytes(text2, analysis.customTokenizer, partial)
|
|
4950
|
+
);
|
|
4951
|
+
}
|
|
4952
|
+
function createCountedDocumentBound(analysis) {
|
|
4953
|
+
return createBound(analysis, (text2, _termsPerUnit, partial) => countedTermBytes(text2, analysis, partial));
|
|
4954
|
+
}
|
|
4955
|
+
function createBound(analysis, termBytesOf) {
|
|
4927
4956
|
const textFields = [];
|
|
4928
4957
|
const enumPaths = [];
|
|
4929
4958
|
const vectorFields = [];
|
|
@@ -4938,12 +4967,11 @@ function createDocumentBound(analysis) {
|
|
|
4938
4967
|
}
|
|
4939
4968
|
const vectorPaths = new Set(vectorFields.map((field) => field.path));
|
|
4940
4969
|
const termsPerUnit = termsPerNormalizedUnit(analysis.language);
|
|
4941
|
-
const tokenizer = analysis.customTokenizer;
|
|
4942
4970
|
return (document) => {
|
|
4943
4971
|
let bytes = valueHeapBytesOf(document, 1, "", vectorPaths) + vectorBytesOf(document, vectorFields);
|
|
4944
4972
|
for (const field of textFields) {
|
|
4945
4973
|
for (const text2 of textsOf(getNestedValue(document, field.path))) {
|
|
4946
|
-
bytes +=
|
|
4974
|
+
bytes += termBytesOf(text2, termsPerUnit, field.partial);
|
|
4947
4975
|
if (field.pattern) bytes += text2.length * CASE_FOLD_EXPANSION_FACTOR * PATTERN_RUN_HEAP_BYTES;
|
|
4948
4976
|
}
|
|
4949
4977
|
}
|
|
@@ -4954,7 +4982,7 @@ function createDocumentBound(analysis) {
|
|
|
4954
4982
|
};
|
|
4955
4983
|
}
|
|
4956
4984
|
|
|
4957
|
-
// src/
|
|
4985
|
+
// src/engine/memory/write-projection.ts
|
|
4958
4986
|
var WRITE_WOULD_FILL_MEMORY_REASON = "write_would_fill_memory";
|
|
4959
4987
|
var WRITE_EXCEEDS_MEMORY_REASON = "write_exceeds_memory";
|
|
4960
4988
|
var UNPROJECTED = { count: 0, release: () => {
|
|
@@ -4967,21 +4995,24 @@ function processRoomIn(figures, fractions) {
|
|
|
4967
4995
|
}
|
|
4968
4996
|
function createWriteProjection(options) {
|
|
4969
4997
|
const bounds = /* @__PURE__ */ new Map();
|
|
4970
|
-
|
|
4971
|
-
|
|
4998
|
+
const { refusal: refusal2 } = options;
|
|
4999
|
+
function fittingCount(indexName, figures, groupBounds, start, mostDocuments, countExactly) {
|
|
5000
|
+
const end = Math.min(groupBounds.length, start + mostDocuments);
|
|
4972
5001
|
if (figures === null) return end - start;
|
|
4973
5002
|
const reserved = reservedHeapBytes();
|
|
4974
5003
|
const heapRoom = heapRoomIn(figures, options.fractions) - reserved;
|
|
4975
5004
|
const processRoom = processRoomIn(figures, options.fractions) - reserved;
|
|
4976
5005
|
const mostGrowth = options.vectorGrowthBytesOf(indexName, end - start);
|
|
5006
|
+
const fits = (next, count3) => next <= heapRoom && (next + mostGrowth <= processRoom || next + options.vectorGrowthBytesOf(indexName, count3 + 1) <= processRoom);
|
|
4977
5007
|
let taken = 0;
|
|
4978
5008
|
let count2 = 0;
|
|
4979
5009
|
while (start + count2 < end) {
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
break;
|
|
4984
|
-
|
|
5010
|
+
if (!fits(taken + groupBounds[start + count2], count2)) {
|
|
5011
|
+
if (countExactly === void 0) break;
|
|
5012
|
+
countExactly(start + count2);
|
|
5013
|
+
if (!fits(taken + groupBounds[start + count2], count2)) break;
|
|
5014
|
+
}
|
|
5015
|
+
taken += groupBounds[start + count2];
|
|
4985
5016
|
count2++;
|
|
4986
5017
|
}
|
|
4987
5018
|
return count2;
|
|
@@ -4993,24 +5024,29 @@ function createWriteProjection(options) {
|
|
|
4993
5024
|
return { count: count2, release: () => reservation.release() };
|
|
4994
5025
|
}
|
|
4995
5026
|
function blockBytesOf(figures) {
|
|
4996
|
-
return Math.floor(
|
|
5027
|
+
return Math.floor(
|
|
5028
|
+
Math.min(
|
|
5029
|
+
options.fractions.heapBlock * figures.heapLimitBytes,
|
|
5030
|
+
options.fractions.processBlock * figures.processLimitBytes
|
|
5031
|
+
)
|
|
5032
|
+
);
|
|
4997
5033
|
}
|
|
4998
5034
|
function exceedsMemory(indexName, bound, blockBytes) {
|
|
4999
5035
|
return new NarsilError(
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
{ reason: WRITE_EXCEEDS_MEMORY_REASON, indexName,
|
|
5036
|
+
refusal2.code,
|
|
5037
|
+
`${refusal2.refuser} refuses this document for index '${indexName}' because indexing it can take up to ${bound} bytes, more than the ${blockBytes} bytes that ${refusal2.owner} allows its memory even when idle. Split the document into smaller documents.`,
|
|
5038
|
+
{ reason: WRITE_EXCEEDS_MEMORY_REASON, indexName, ...refusal2.details, documentBytes: bound, blockBytes }
|
|
5003
5039
|
);
|
|
5004
5040
|
}
|
|
5005
5041
|
function wouldFillMemory(indexName, bound, figures, heapBytesBeforeCollection, collectedGarbage) {
|
|
5006
5042
|
const projected = reservedHeapBytes();
|
|
5007
5043
|
return new NarsilError(
|
|
5008
|
-
|
|
5009
|
-
|
|
5044
|
+
refusal2.code,
|
|
5045
|
+
`${refusal2.refuser} refuses this document for index '${indexName}' because indexing it can take up to ${bound} bytes, which with the ${projected} bytes that writes in progress can take would pass ${refusal2.owner}'s memory block. ${refusal2.fillAdvice}`,
|
|
5010
5046
|
{
|
|
5011
5047
|
reason: WRITE_WOULD_FILL_MEMORY_REASON,
|
|
5012
5048
|
indexName,
|
|
5013
|
-
|
|
5049
|
+
...refusal2.details,
|
|
5014
5050
|
documentBytes: bound,
|
|
5015
5051
|
projectedBytes: projected,
|
|
5016
5052
|
heapBytes: figures.heapBytes,
|
|
@@ -5024,37 +5060,41 @@ function createWriteProjection(options) {
|
|
|
5024
5060
|
}
|
|
5025
5061
|
);
|
|
5026
5062
|
}
|
|
5027
|
-
function takeGroup(indexName, groupBounds, start) {
|
|
5063
|
+
function takeGroup(indexName, groupBounds, start, mostDocuments = BATCH_CHUNK_SIZE, countExactly) {
|
|
5028
5064
|
if (start >= groupBounds.length) return UNPROJECTED;
|
|
5029
5065
|
const measured = options.measure();
|
|
5030
|
-
if (measured === null)
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
throw exceedsMemory(indexName, groupBounds[start], blockBytesOf(measured));
|
|
5066
|
+
if (measured === null) {
|
|
5067
|
+
const unmeasured = fittingCount(indexName, null, groupBounds, start, mostDocuments, countExactly);
|
|
5068
|
+
return reserve(indexName, groupBounds, start, unmeasured);
|
|
5034
5069
|
}
|
|
5070
|
+
const blockBytes = blockBytesOf(measured);
|
|
5071
|
+
if (groupBounds[start] > blockBytes) countExactly?.(start);
|
|
5072
|
+
if (groupBounds[start] > blockBytes) throw exceedsMemory(indexName, groupBounds[start], blockBytes);
|
|
5035
5073
|
let figures = measured;
|
|
5036
|
-
let count2 = fittingCount(indexName, figures, groupBounds, start);
|
|
5074
|
+
let count2 = fittingCount(indexName, figures, groupBounds, start, mostDocuments, countExactly);
|
|
5037
5075
|
if (count2 > 0) return reserve(indexName, groupBounds, start, count2);
|
|
5038
5076
|
const collectionsBefore = options.collections();
|
|
5039
5077
|
figures = options.measureWithoutGarbage() ?? figures;
|
|
5040
|
-
count2 = fittingCount(indexName, figures, groupBounds, start);
|
|
5078
|
+
count2 = fittingCount(indexName, figures, groupBounds, start, mostDocuments, countExactly);
|
|
5041
5079
|
if (count2 > 0) return reserve(indexName, groupBounds, start, count2);
|
|
5042
5080
|
const collected = options.collections() !== collectionsBefore;
|
|
5043
5081
|
if (collected) options.refusedAfterCollection(figures);
|
|
5044
5082
|
throw wouldFillMemory(indexName, groupBounds[start], figures, measured.heapBytes, collected);
|
|
5045
5083
|
}
|
|
5084
|
+
function cachedBoundsOf(indexName) {
|
|
5085
|
+
const analysis = options.analysisOf(indexName);
|
|
5086
|
+
if (analysis === null) return null;
|
|
5087
|
+
const cached = bounds.get(indexName);
|
|
5088
|
+
if (cached !== void 0 && cached.analysis.schema === analysis.schema && cached.analysis.language === analysis.language && cached.analysis.customTokenizer === analysis.customTokenizer) {
|
|
5089
|
+
return cached;
|
|
5090
|
+
}
|
|
5091
|
+
const fresh = { analysis, bound: createDocumentBound(analysis), counted: createCountedDocumentBound(analysis) };
|
|
5092
|
+
bounds.set(indexName, fresh);
|
|
5093
|
+
return fresh;
|
|
5094
|
+
}
|
|
5046
5095
|
return {
|
|
5047
|
-
boundOf(indexName)
|
|
5048
|
-
|
|
5049
|
-
if (analysis === null) return null;
|
|
5050
|
-
const cached = bounds.get(indexName);
|
|
5051
|
-
if (cached !== void 0 && cached.analysis.schema === analysis.schema && cached.analysis.language === analysis.language && cached.analysis.customTokenizer === analysis.customTokenizer) {
|
|
5052
|
-
return cached.bound;
|
|
5053
|
-
}
|
|
5054
|
-
const bound = createDocumentBound(analysis);
|
|
5055
|
-
bounds.set(indexName, { analysis, bound });
|
|
5056
|
-
return bound;
|
|
5057
|
-
},
|
|
5096
|
+
boundOf: (indexName) => cachedBoundsOf(indexName)?.bound ?? null,
|
|
5097
|
+
countedBoundOf: (indexName) => cachedBoundsOf(indexName)?.counted ?? null,
|
|
5058
5098
|
takeGroup,
|
|
5059
5099
|
takeOne: (indexName, bound) => takeGroup(indexName, [bound], 0)
|
|
5060
5100
|
};
|
|
@@ -13171,6 +13211,27 @@ function createAllocationErrorForwarder(forwardOnError) {
|
|
|
13171
13211
|
};
|
|
13172
13212
|
}
|
|
13173
13213
|
|
|
13214
|
+
// src/engine/memory/write-analysis.ts
|
|
13215
|
+
function writeAnalysisOf(core, indexName) {
|
|
13216
|
+
const entry = core.indexRegistry.get(indexName);
|
|
13217
|
+
if (entry === void 0) return null;
|
|
13218
|
+
const manager = core.executor.getManager(indexName);
|
|
13219
|
+
const language = manager?.language ?? getLanguage(entry.config.language ?? "english");
|
|
13220
|
+
const customTokenizer = (manager?.analysis ?? resolveIndexAnalysis(entry.config)).customTokenizer;
|
|
13221
|
+
return {
|
|
13222
|
+
schema: entry.config.schema,
|
|
13223
|
+
language,
|
|
13224
|
+
...customTokenizer === void 0 ? {} : { customTokenizer }
|
|
13225
|
+
};
|
|
13226
|
+
}
|
|
13227
|
+
function vectorGrowthBytesOf(core, indexName, documents) {
|
|
13228
|
+
const manager = core.executor.getManager(indexName);
|
|
13229
|
+
if (manager === void 0 || manager === null) return 0;
|
|
13230
|
+
let bytes = 0;
|
|
13231
|
+
for (const vectorIndex of manager.getVectorIndexes().values()) bytes += vectorIndex.growthBytesFor(documents);
|
|
13232
|
+
return bytes;
|
|
13233
|
+
}
|
|
13234
|
+
|
|
13174
13235
|
// src/persistence/durability/partition-log.ts
|
|
13175
13236
|
function persistedPosition(manager, indexName, partitionId) {
|
|
13176
13237
|
const partition = manager.partitionRegistry?.indexes.get(indexName)?.partitions.get(partitionId);
|
|
@@ -13241,7 +13302,7 @@ async function openOnce(core, indexName, partitionId) {
|
|
|
13241
13302
|
if (directory === void 0) throw durabilityRequired(indexName, partitionId);
|
|
13242
13303
|
if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
|
|
13243
13304
|
const config = await encodeIndexConfiguration(entry);
|
|
13244
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
13305
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-FDIIWZNR.mjs');
|
|
13245
13306
|
const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
|
|
13246
13307
|
handedOver = true;
|
|
13247
13308
|
try {
|
|
@@ -13920,7 +13981,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
|
|
|
13920
13981
|
);
|
|
13921
13982
|
}
|
|
13922
13983
|
try {
|
|
13923
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
13984
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-FDIIWZNR.mjs');
|
|
13924
13985
|
const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
|
|
13925
13986
|
return {
|
|
13926
13987
|
stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
|
|
@@ -14129,7 +14190,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
14129
14190
|
if (directory !== null) {
|
|
14130
14191
|
const durable = core.durability?.manager;
|
|
14131
14192
|
await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
|
|
14132
|
-
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-
|
|
14193
|
+
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-FDIIWZNR.mjs');
|
|
14133
14194
|
await removeReceivedFilesNothingReads(
|
|
14134
14195
|
directory,
|
|
14135
14196
|
core.requireManager(indexName),
|
|
@@ -14561,25 +14622,6 @@ async function createClusterLocalEngine(config, hooks) {
|
|
|
14561
14622
|
}
|
|
14562
14623
|
});
|
|
14563
14624
|
}
|
|
14564
|
-
function writeAnalysisOf(core, indexName) {
|
|
14565
|
-
const entry = core.indexRegistry.get(indexName);
|
|
14566
|
-
if (entry === void 0) return null;
|
|
14567
|
-
const manager = core.executor.getManager(indexName);
|
|
14568
|
-
const language = manager?.language ?? getLanguage(entry.config.language ?? "english");
|
|
14569
|
-
const customTokenizer = (manager?.analysis ?? resolveIndexAnalysis(entry.config)).customTokenizer;
|
|
14570
|
-
return {
|
|
14571
|
-
schema: entry.config.schema,
|
|
14572
|
-
language,
|
|
14573
|
-
...customTokenizer === void 0 ? {} : { customTokenizer }
|
|
14574
|
-
};
|
|
14575
|
-
}
|
|
14576
|
-
function vectorGrowthBytesOf(core, indexName, documents) {
|
|
14577
|
-
const manager = core.executor.getManager(indexName);
|
|
14578
|
-
if (manager === void 0 || manager === null) return 0;
|
|
14579
|
-
let bytes = 0;
|
|
14580
|
-
for (const vectorIndex of manager.getVectorIndexes().values()) bytes += vectorIndex.growthBytesFor(documents);
|
|
14581
|
-
return bytes;
|
|
14582
|
-
}
|
|
14583
14625
|
function persistedPositionOf(core, indexName, partitionId) {
|
|
14584
14626
|
const durable = core.durability?.manager;
|
|
14585
14627
|
if (durable === void 0) return { seqNo: 0, primaryTerm: 0 };
|
|
@@ -19878,7 +19920,7 @@ async function queryCluster(deps, indexName, params, settingName) {
|
|
|
19878
19920
|
(reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
|
|
19879
19921
|
);
|
|
19880
19922
|
}
|
|
19881
|
-
const { rerankClusterQuery } = await import('./rerank-
|
|
19923
|
+
const { rerankClusterQuery } = await import('./rerank-3W54N6P2.mjs');
|
|
19882
19924
|
return withRankedReader(
|
|
19883
19925
|
deps,
|
|
19884
19926
|
indexName,
|
|
@@ -20315,129 +20357,6 @@ function createAllocationView(coordinator) {
|
|
|
20315
20357
|
};
|
|
20316
20358
|
}
|
|
20317
20359
|
|
|
20318
|
-
// src/distribution/cluster-node/memory/fractions.ts
|
|
20319
|
-
function memoryFractionsOf(config) {
|
|
20320
|
-
const block = config?.blockWritesAbove ?? DEFAULT_BLOCK_WRITES_ABOVE;
|
|
20321
|
-
const resume = config?.resumeWritesBelow ?? DEFAULT_RESUME_WRITES_BELOW;
|
|
20322
|
-
return {
|
|
20323
|
-
processBlock: block,
|
|
20324
|
-
processResume: resume,
|
|
20325
|
-
heapBlock: Math.min(block, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE),
|
|
20326
|
-
heapResume: Math.min(resume, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE)
|
|
20327
|
-
};
|
|
20328
|
-
}
|
|
20329
|
-
|
|
20330
|
-
// src/distribution/cluster-node/memory/monitor.ts
|
|
20331
|
-
function fractionOf(usedBytes, limitBytes) {
|
|
20332
|
-
return limitBytes > 0 ? usedBytes / limitBytes : 0;
|
|
20333
|
-
}
|
|
20334
|
-
function reportOf(figures, full) {
|
|
20335
|
-
return {
|
|
20336
|
-
processBytes: figures.processBytes,
|
|
20337
|
-
processLimitBytes: figures.processLimitBytes,
|
|
20338
|
-
heapBytes: figures.heapBytes,
|
|
20339
|
-
heapLimitBytes: figures.heapLimitBytes,
|
|
20340
|
-
full
|
|
20341
|
-
};
|
|
20342
|
-
}
|
|
20343
|
-
function atOrAboveResume(figures, fractions) {
|
|
20344
|
-
return fractionOf(figures.processBytes + figures.youngReserveBytes, figures.processLimitBytes) >= fractions.processResume || fractionOf(figures.heapBytes, figures.heapLimitBytes) >= fractions.heapResume;
|
|
20345
|
-
}
|
|
20346
|
-
function nextFullState(wasFull, figures, fractions) {
|
|
20347
|
-
if (wasFull) return atOrAboveResume(figures, fractions);
|
|
20348
|
-
return fractionOf(figures.processBytes + figures.youngReserveBytes, figures.processLimitBytes) > fractions.processBlock || fractionOf(figures.heapBytes, figures.heapLimitBytes) > fractions.heapBlock;
|
|
20349
|
-
}
|
|
20350
|
-
function createMemoryMonitor(options) {
|
|
20351
|
-
let latest = null;
|
|
20352
|
-
let timer = null;
|
|
20353
|
-
let lastCollectionAt = Number.NEGATIVE_INFINITY;
|
|
20354
|
-
let lastSampleAt = Number.NEGATIVE_INFINITY;
|
|
20355
|
-
let collectionCount = 0;
|
|
20356
|
-
let latestMeasured = null;
|
|
20357
|
-
function figuresWithoutGarbageBeforeRefusal(figures) {
|
|
20358
|
-
if (!options.collectGarbageBeforeRefusal()) {
|
|
20359
|
-
return options.collectYoungGenerationBeforeRefusal() ? options.read() ?? figures : figures;
|
|
20360
|
-
}
|
|
20361
|
-
collectionCount++;
|
|
20362
|
-
return options.read() ?? figures;
|
|
20363
|
-
}
|
|
20364
|
-
function figuresWithoutGarbage(figures) {
|
|
20365
|
-
const now3 = Date.now();
|
|
20366
|
-
if (now3 - lastCollectionAt < options.collectionIntervalMs) {
|
|
20367
|
-
return figures;
|
|
20368
|
-
}
|
|
20369
|
-
lastCollectionAt = now3;
|
|
20370
|
-
if (!options.collectGarbage()) {
|
|
20371
|
-
return figures;
|
|
20372
|
-
}
|
|
20373
|
-
collectionCount++;
|
|
20374
|
-
return options.read() ?? figures;
|
|
20375
|
-
}
|
|
20376
|
-
function record(figures) {
|
|
20377
|
-
const wasFull = latest?.full ?? false;
|
|
20378
|
-
let full = nextFullState(wasFull, figures, options.fractions);
|
|
20379
|
-
let settled = figures;
|
|
20380
|
-
if (full) {
|
|
20381
|
-
settled = figuresWithoutGarbage(figures);
|
|
20382
|
-
full = nextFullState(wasFull, settled, options.fractions);
|
|
20383
|
-
}
|
|
20384
|
-
latestMeasured = settled;
|
|
20385
|
-
latest = reportOf(settled, full);
|
|
20386
|
-
if (full !== wasFull) {
|
|
20387
|
-
options.onFullChange(full);
|
|
20388
|
-
}
|
|
20389
|
-
}
|
|
20390
|
-
function sample() {
|
|
20391
|
-
lastSampleAt = Date.now();
|
|
20392
|
-
const figures = options.read();
|
|
20393
|
-
if (figures !== null) {
|
|
20394
|
-
record(figures);
|
|
20395
|
-
}
|
|
20396
|
-
}
|
|
20397
|
-
function latestFigures() {
|
|
20398
|
-
return latestMeasured;
|
|
20399
|
-
}
|
|
20400
|
-
return {
|
|
20401
|
-
report: () => latest,
|
|
20402
|
-
isFull: () => latest?.full ?? false,
|
|
20403
|
-
sample,
|
|
20404
|
-
measureWithoutGarbage() {
|
|
20405
|
-
lastSampleAt = Date.now();
|
|
20406
|
-
const figures = options.read();
|
|
20407
|
-
if (figures === null) return latestFigures();
|
|
20408
|
-
record(figuresWithoutGarbageBeforeRefusal(figures));
|
|
20409
|
-
return latestFigures();
|
|
20410
|
-
},
|
|
20411
|
-
refusedAfterCollection(figures) {
|
|
20412
|
-
if (latest?.full === true) return;
|
|
20413
|
-
if (!atOrAboveResume(figures, options.fractions)) return;
|
|
20414
|
-
latestMeasured = { ...figures };
|
|
20415
|
-
latest = reportOf(figures, true);
|
|
20416
|
-
options.onFullChange(true);
|
|
20417
|
-
},
|
|
20418
|
-
collections: () => collectionCount,
|
|
20419
|
-
sampleIfOlderThan(maxAgeMs) {
|
|
20420
|
-
if (timer !== null && Date.now() - lastSampleAt >= maxAgeMs) {
|
|
20421
|
-
sample();
|
|
20422
|
-
}
|
|
20423
|
-
},
|
|
20424
|
-
start() {
|
|
20425
|
-
if (timer !== null) {
|
|
20426
|
-
return;
|
|
20427
|
-
}
|
|
20428
|
-
sample();
|
|
20429
|
-
timer = setInterval(sample, options.intervalMs);
|
|
20430
|
-
timer.unref?.();
|
|
20431
|
-
},
|
|
20432
|
-
stop() {
|
|
20433
|
-
if (timer !== null) {
|
|
20434
|
-
clearInterval(timer);
|
|
20435
|
-
timer = null;
|
|
20436
|
-
}
|
|
20437
|
-
}
|
|
20438
|
-
};
|
|
20439
|
-
}
|
|
20440
|
-
|
|
20441
20360
|
// src/distribution/cluster-node/memory/partition-bytes.ts
|
|
20442
20361
|
function heldPartitionSizes(engine, indexName) {
|
|
20443
20362
|
const held = new Set(engine.heldPartitionsOf(indexName) ?? []);
|
|
@@ -20533,7 +20452,13 @@ function createNodeMemoryReporting(options) {
|
|
|
20533
20452
|
localIsFull: monitor.isFull
|
|
20534
20453
|
});
|
|
20535
20454
|
const writeProjection = createWriteProjection({
|
|
20536
|
-
|
|
20455
|
+
refusal: {
|
|
20456
|
+
code: ErrorCodes.CLUSTER_WRITE_BLOCKED,
|
|
20457
|
+
refuser: `Node '${options.registration.nodeId}'`,
|
|
20458
|
+
owner: "the node",
|
|
20459
|
+
fillAdvice: "Retry once the writes in progress finish, or add memory to the cluster.",
|
|
20460
|
+
details: { nodeId: options.registration.nodeId }
|
|
20461
|
+
},
|
|
20537
20462
|
fractions,
|
|
20538
20463
|
measure: readRecentMemoryFigures,
|
|
20539
20464
|
measureWithoutGarbage: () => monitor.measureWithoutGarbage(),
|
|
@@ -21088,34 +21013,6 @@ function createSingleResponseRespond(respond) {
|
|
|
21088
21013
|
}
|
|
21089
21014
|
|
|
21090
21015
|
// src/distribution/cluster-node/validate-config.ts
|
|
21091
|
-
function validateMemoryConfig(memory) {
|
|
21092
|
-
if (typeof memory !== "object" || memory === null) {
|
|
21093
|
-
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "ClusterNodeConfig.memory must be an object", { memory });
|
|
21094
|
-
}
|
|
21095
|
-
const { blockWritesAbove, resumeWritesBelow, inFlightWriteFraction } = memory;
|
|
21096
|
-
for (const [name, value] of [
|
|
21097
|
-
["blockWritesAbove", blockWritesAbove],
|
|
21098
|
-
["resumeWritesBelow", resumeWritesBelow],
|
|
21099
|
-
["inFlightWriteFraction", inFlightWriteFraction]
|
|
21100
|
-
]) {
|
|
21101
|
-
if (value !== void 0 && (typeof value !== "number" || !Number.isFinite(value) || value <= 0 || value > 1)) {
|
|
21102
|
-
throw new NarsilError(
|
|
21103
|
-
ErrorCodes.CONFIG_INVALID,
|
|
21104
|
-
`ClusterNodeConfig.memory.${name} must be a number above 0 and at most 1`,
|
|
21105
|
-
{ [name]: value }
|
|
21106
|
-
);
|
|
21107
|
-
}
|
|
21108
|
-
}
|
|
21109
|
-
const block = typeof blockWritesAbove === "number" ? blockWritesAbove : DEFAULT_BLOCK_WRITES_ABOVE;
|
|
21110
|
-
const resume = typeof resumeWritesBelow === "number" ? resumeWritesBelow : DEFAULT_RESUME_WRITES_BELOW;
|
|
21111
|
-
if (resume >= block) {
|
|
21112
|
-
throw new NarsilError(
|
|
21113
|
-
ErrorCodes.CONFIG_INVALID,
|
|
21114
|
-
`ClusterNodeConfig.memory.resumeWritesBelow (${resume}) must lie below blockWritesAbove (${block})`,
|
|
21115
|
-
{ blockWritesAbove: block, resumeWritesBelow: resume }
|
|
21116
|
-
);
|
|
21117
|
-
}
|
|
21118
|
-
}
|
|
21119
21016
|
function validateClusterNodeConfig(config) {
|
|
21120
21017
|
if (config.address.length === 0) {
|
|
21121
21018
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "ClusterNodeConfig.address must not be empty");
|
|
@@ -21178,9 +21075,7 @@ function validateClusterNodeConfig(config) {
|
|
|
21178
21075
|
);
|
|
21179
21076
|
}
|
|
21180
21077
|
}
|
|
21181
|
-
|
|
21182
|
-
validateMemoryConfig(config.memory);
|
|
21183
|
-
}
|
|
21078
|
+
validateMemoryFractions("ClusterNodeConfig.memory", config.memory, ["inFlightWriteFraction"]);
|
|
21184
21079
|
if (config.backups !== void 0) {
|
|
21185
21080
|
validateBackupConfig(config.backups);
|
|
21186
21081
|
}
|