An elastic framework construction method based on task migration in edge computing