>> Yes, this could lead to some waste, but the system is eventually consistent.
There will be lot of waste. Particularly for applications which are ramping up the requests with time, and not putting all the requests upfront.
Another issue will be the sub-optimal scheduling in AM.
In the above example:
- AM asks for 3 additional containers(total 7) on different host H2.
- The request table in AM will get overwritten with 4 on H1 and 3 on H2.
- RM may allocate containers on H1 or H2. But in reality it should only try to assign on H2.
- If RM gives containers to AM on H1 first, AM will do off host assignments and will release the ones on H2.