mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
789c798e7e
commit
2f28d65e59
|
@ -92,9 +92,9 @@ ncqStorageRun ncq@NCQStorage{..} = flip runContT pure do
|
||||||
ema <- readTVarIO ncqWriteEMA
|
ema <- readTVarIO ncqWriteEMA
|
||||||
debug $ "EMA" <+> pretty (realToFrac @_ @(Fixed E3) ema)
|
debug $ "EMA" <+> pretty (realToFrac @_ @(Fixed E3) ema)
|
||||||
|
|
||||||
spawnActivity $ postponed 60 $ forever do
|
spawnActivity $ postponed 30 $ forever do
|
||||||
lsInit <- ncqLiveKeys ncq <&> HS.size
|
lsInit <- ncqLiveKeys ncq <&> HS.size
|
||||||
void $ race (pause @'Seconds 60) do
|
void $ race (pause @'Seconds 30) do
|
||||||
flip fix lsInit $ \next ls0 -> do
|
flip fix lsInit $ \next ls0 -> do
|
||||||
(lsA,lsB) <- atomically do
|
(lsA,lsB) <- atomically do
|
||||||
ema <- readTVar ncqWriteEMA
|
ema <- readTVar ncqWriteEMA
|
||||||
|
@ -110,10 +110,10 @@ ncqStorageRun ncq@NCQStorage{..} = flip runContT pure do
|
||||||
ncqSweepFiles ncq
|
ncqSweepFiles ncq
|
||||||
next lsB
|
next lsB
|
||||||
|
|
||||||
spawnActivity $ postponed 10 $ compactLoop 10 60 do
|
spawnActivity $ postponed 10 $ compactLoop 10 30 do
|
||||||
ncqIndexCompactStep ncq
|
ncqIndexCompactStep ncq
|
||||||
|
|
||||||
spawnActivity $ postponed 20 $ compactLoop 10 120 do
|
spawnActivity $ postponed 20 $ compactLoop 10 60 do
|
||||||
ncqFossilMergeStep ncq
|
ncqFossilMergeStep ncq
|
||||||
|
|
||||||
flip fix RunNew $ \loop -> \case
|
flip fix RunNew $ \loop -> \case
|
||||||
|
|
Loading…
Reference in New Issue