Flush analytics data to disk

Flushes in-memory analytics data to disk. Useful for ensuring analytics data is persisted before a server restart.