Self-Adjustment of Resource Allocation for Grid Applications