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

Limit Total Number of uploads in one transaction #49

Closed
neilh10 opened this issue May 26, 2021 · 1 comment
Closed

Limit Total Number of uploads in one transaction #49

neilh10 opened this issue May 26, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@neilh10
Copy link
Owner

neilh10 commented May 26, 2021

When posting a backlog of multiple readings, it can cause an over-run of a sampling window.
When posting a backlog of multiple readings, if there is a restart/reset in the middle it starts from the beginning again
New feature to implement POST_MAX_NUM=x in ms_cfg.ini
POST_MAX_NUM=100 ;set default to 100

For 15min sampling - 24hours, this represents 96 samples
A typical post to a responding MMW takes about 5seconds with a 2.5seconds '201' response.
For 96 records this is 8minutes.
If the network post is set to be delayed to 7minutes (ms_cfg.ini:SEND_OFFSET_MIN=7) or more, then there could be a loss of the next instrument sampling.

So a healthy network post schedule set to occur 3minutes(SEND_OFFSET_MIN=3), would have a budget of 12min to the next 15min schedule, if the maximum upload on any one connection is set to 96records.

Currently the only limitation on length of one host connection is if the battery voltage is sufficient.

@neilh10 neilh10 added the enhancement New feature or request label May 26, 2021
@neilh10 neilh10 self-assigned this May 30, 2021
neilh10 pushed a commit that referenced this issue Jul 9, 2021
neilh10 pushed a commit that referenced this issue Jul 11, 2021
@neilh10
Copy link
Owner Author

neilh10 commented Jul 11, 2021

Completed with 38745e 38745e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant