SMS: Terramycelium: a reference architecture for adaptive big data systems