-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db: IngestOperationStats absent for flushable ingests #2421
Comments
Glad you noticed this! I think it would be an ok approximation if in |
jbowens
added a commit
to jbowens/pebble
that referenced
this issue
Mar 31, 2023
The IngestWithStats ingestion entrypoint returnrs statistics about the ingest. Cockroach uses these statistics to inform admission control. During a flushable ingest, at commit time the number of bytes that will be ingested into L0 is unknown. This commit adds an approximation based on which tables overlapped the flushable queue. This required adjusting the memtable overlap logic to avoid short circuiting as soon as overlap is found. This approximation is rough and may be improved with future work, such as cockroachdb#2112. Close cockroachdb#2421. Informs cockroachdb#2112.
jbowens
added a commit
to jbowens/pebble
that referenced
this issue
Apr 3, 2023
The IngestWithStats ingestion entrypoint returnrs statistics about the ingest. Cockroach uses these statistics to inform admission control. During a flushable ingest, at commit time the number of bytes that will be ingested into L0 is unknown. This commit adds an approximation based on which tables overlapped the flushable queue. This required adjusting the memtable overlap logic to avoid short circuiting as soon as overlap is found. This approximation is rough and may be improved with future work, such as cockroachdb#2112. Close cockroachdb#2421. Informs cockroachdb#2112.
jbowens
added a commit
that referenced
this issue
Apr 3, 2023
The IngestWithStats ingestion entrypoint returnrs statistics about the ingest. Cockroach uses these statistics to inform admission control. During a flushable ingest, at commit time the number of bytes that will be ingested into L0 is unknown. This commit adds an approximation based on which tables overlapped the flushable queue. This required adjusting the memtable overlap logic to avoid short circuiting as soon as overlap is found. This approximation is rough and may be improved with future work, such as #2112. Close #2421. Informs #2112.
jbowens
added a commit
to jbowens/pebble
that referenced
this issue
Apr 3, 2023
The IngestWithStats ingestion entrypoint returnrs statistics about the ingest. Cockroach uses these statistics to inform admission control. During a flushable ingest, at commit time the number of bytes that will be ingested into L0 is unknown. This commit adds an approximation based on which tables overlapped the flushable queue. This required adjusting the memtable overlap logic to avoid short circuiting as soon as overlap is found. This approximation is rough and may be improved with future work, such as cockroachdb#2112. Close cockroachdb#2421. Informs cockroachdb#2112.
jbowens
added a commit
that referenced
this issue
Apr 3, 2023
The IngestWithStats ingestion entrypoint returnrs statistics about the ingest. Cockroach uses these statistics to inform admission control. During a flushable ingest, at commit time the number of bytes that will be ingested into L0 is unknown. This commit adds an approximation based on which tables overlapped the flushable queue. This required adjusting the memtable overlap logic to avoid short circuiting as soon as overlap is found. This approximation is rough and may be improved with future work, such as #2112. Close #2421. Informs #2112.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should calculate approximate stats to accommodate admission control.
pebble/ingest.go
Lines 661 to 663 in 2e9d3f5
The text was updated successfully, but these errors were encountered: