Current agent buffer size is 2^17, should be similar size
We need to make the buffer size at least 32k by default to allow for adequate space in the circular buffer. We need to test the amount of memory this takes for initial configuration.
The current default size of 10 is far too small.
The tests rely on the buffer size being 10, we need to have the tests set this explicitly.
Priority 2
@wsobel So there are few plces where this is used https://github.com/mtconnect/mtconnect-agent/blob/2e0508af679222998a53526c183ba851d89c1c22/src/dataStorage.js#L30 Which should be what size? https://github.com/mtconnect/mtconnect-agent/blob/2e0508af679222998a53526c183ba851d89c1c22/src/dataStorage.js#L37
lokijs is not handling 32k record insertion well. Just found that https://github.com/mtconnect/mtconnect-agent/blob/2e0508af679222998a53526c183ba851d89c1c22/src/jsonToXML.js has both buffer values hardcoded