On Wed, May 31, 2017 at 5:45 AM, David Suarez Fuentes < david.suarez.fuen...@ericsson.com> wrote:
> Hi all, > > > We are using the RPC to generate a backup file in a ODL cluster, and we'd > like to warn the user if there is not enough disk space to store the > generated file. Is there a way to know the size of the current in memory > database or at least a maximum? Could we extrapolate it from the > snapshot/journal files? > > > The only way to really know the size is to actually serialize it. It could be serialized to an output stream that just counts the bytes. I suppose you could look at the size of the snapshot/journal files to get an estimate. The snapshot files contain the serialized data tree similar to the backup file. The journal contains the rest of the data although it's in some levelDB format but the 2 directory sizes should give a pretty good high-end estimate. > Thanks in advance, > > David Suárez > > _______________________________________________ > controller-dev mailing list > controller-dev@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/controller-dev > >
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev