simonsobs / simonsobs/ocs

Expand file rotation conditions in HKAggregator

Open
#400 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
19
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Originally from https://github.com/simonsobs/ocs-deployment-configs/issues/172.

For HK, specifically, we're sort of aiming for ~1GB files, but without crossing ctime % 100000 boundaries. So it might be good if aggregator had a mode where it could change files based on a variety of conditions; e.g. if any of:

  • file size reaches some threshold
  • some time has passed (current implementation)
  • some ctime boundary (e.g. ctime % 100000 == 0) is crossed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating HKAggregator and the current time-based file rotation logic. Review how files are opened and closed, then define completion as rotation occurring when any configured size threshold, elapsed-time condition, or ctime boundary is reached.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.