add feature to scale cup/memory
update metadata db after scaling
merge code