Revision e8afa9ff

b/snf-cyclades-app/synnefo/logic/allocators/default_allocator.py
67 67
def backend_score(backend, flavor):
68 68
    mratio = 1 - (backend['mfree'] / backend['mtotal'])
69 69
    dratio = 1 - (backend['dfree'] / backend['dtotal'])
70
    # cratio = (backend.pinst_cnt+1)/backend.ctotal
71
    return 0.5 * (mratio + dratio)
70
    cratio = (backend['pinst_cnt'] + 1) / (backend['ctotal'] * 4)
71
    return 0.7 * (mratio + dratio) * 0.3 * cratio

Also available in: Unified diff