Skip to content
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

Minimum openHistorian 1.0 file size #46

Open
StephenCWills opened this issue Nov 1, 2018 · 0 comments
Open

Minimum openHistorian 1.0 file size #46

StephenCWills opened this issue Nov 1, 2018 · 0 comments
Assignees

Comments

@StephenCWills
Copy link
Member

The openHistorian 1.0 archive is organized into data blocks that each contain one or more data points for a given signal. The archive will roll over to a new file when it is unable to allocate a new data block for a data point that it is attempting to archive. This means that an archive's file size needs to be adjusted so that each archive file has enough space to allocate at least one data block for each signal that is destined for that archive; otherwise, the archive will rapidly generate an explosion of nearly empty archive files.

LocalOutputAdapter.OptimizeLocalHistorianSettings() has a routine to adjust the file size for the STAT historian based on the number of data points destined for that archive. That way, the target file size for archive files scales up as the system does. Similar logic can be used to calculate a minimum "sane" file size for any openHistorian 1.0 archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants