discovery: support size para
Merge pull request #11 from xiangli-cmu/size

discovery: support size para