TWO LAYER OPTIMIZATION CONFIGURATION METHOD FOR DISTRIBUTED