Repository navigation
Fleet status completely out-of-sync with GameServerSet status #570
Copy link
Copy link
Closed
Labels
good first issueThese are great first issues. If you are looking for a place to start, start here!These are great first issues. If you are looking for a place to start, start here!help wantedWe would love help on these issues. Please come help us!We would love help on these issues. Please come help us!kind/bugThese are bugs.These are bugs.
Milestone
Description
This is when running a test that scales fleets up and down. The numbers observed by fleet should be roughly in sync with corresponding GSS, but they are not:
$ kubectl get fleet,gss
NAME SCHEDULING DESIRED CURRENT ALLOCATED READY AGE
fleet.stable.agones.dev/scale-fleet-0-pw776 Packed 0 54 0 54 3m
fleet.stable.agones.dev/scale-fleet-1-dsdm9 Packed 0 200 0 200 3m
fleet.stable.agones.dev/scale-fleet-2-skhfw Packed 0 0 0 0 3m
fleet.stable.agones.dev/scale-fleet-3-ggb2w Packed 0 200 0 200 3m
fleet.stable.agones.dev/scale-fleet-4-v2v86 Packed 0 47 0 47 3m
fleet.stable.agones.dev/scale-fleet-5-hfshp Packed 0 200 0 200 3m
fleet.stable.agones.dev/scale-fleet-6-vwqzp Packed 200 0 0 0 3m
fleet.stable.agones.dev/scale-fleet-7-2vtzh Packed 0 200 0 200 3m
fleet.stable.agones.dev/scale-fleet-8-b8kgl Packed 0 99 0 99 2m
fleet.stable.agones.dev/scale-fleet-9-tlnss Packed 0 200 0 200 2m
NAME SCHEDULING DESIRED CURRENT ALLOCATED READY AGE
gameserverset.stable.agones.dev/scale-fleet-0-pw776-v5h2z Packed 0 0 0 0 3m
gameserverset.stable.agones.dev/scale-fleet-1-dsdm9-d7vdn Packed 200 200 0 200 3m
gameserverset.stable.agones.dev/scale-fleet-2-skhfw-krq98 Packed 0 0 0 0 3m
gameserverset.stable.agones.dev/scale-fleet-3-ggb2w-m8s8w Packed 0 189 0 189 3m
gameserverset.stable.agones.dev/scale-fleet-4-v2v86-2c84s Packed 0 0 0 0 3m
gameserverset.stable.agones.dev/scale-fleet-5-hfshp-4ztcw Packed 200 200 0 200 3m
gameserverset.stable.agones.dev/scale-fleet-6-vwqzp-8hb6s Packed 0 0 0 0 3m
gameserverset.stable.agones.dev/scale-fleet-7-2vtzh-j9tl5 Packed 200 200 0 200 2m
gameserverset.stable.agones.dev/scale-fleet-8-b8kgl-9vcfz Packed 0 0 0 0 2m
gameserverset.stable.agones.dev/scale-fleet-9-tlnss-fkrqm Packed 0 35 0 35 2mSimple repro is in PR #571
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueThese are great first issues. If you are looking for a place to start, start here!These are great first issues. If you are looking for a place to start, start here!help wantedWe would love help on these issues. Please come help us!We would love help on these issues. Please come help us!kind/bugThese are bugs.These are bugs.
Activity
aLekSer commentedon Feb 18, 2019
What I have noticed after running stress-test-e2e with stress factor of 2 :
After several seconds:
It seems that updating Desired count for this case when number of GS > Desired we have a situation, where some servers are in
shutdownstate and other increating,scheduledstate:It would be great if we can add the test for that particular case.
Yingxin-Jiang commentedon Feb 21, 2019
I will work on this issue.
aLekSer commentedon Feb 22, 2019
Hello @Yingxin-Jiang ,
I was thinking of making fleets status updates a bit faster and updating them using
GameServerStatus, notGameServerSetStatus. Change inupdateFleetStatus()fromListGameServerSetsByFleetOwner()toListGameServersByFleetOwner().Currently we update GS status -> GSS -> then Fleet.
aLekSer@1c3f992
But them are not 100% in sync either. I think cause of workerqueues which started in different points in time.
Yingxin-Jiang commentedon Feb 25, 2019
@aLekSer Thanks for the info. Looks like you are working on the issue. So I better leave it to you to avoid duplicate work :)
aLekSer commentedon Feb 26, 2019
@Yingxin-Jiang , I stopped working on it for a bit, because I was not able to find root cause and how we can sync them. So please, if you have any ideas raise your own fix for this ticket.
Yingxin-Jiang commentedon Feb 26, 2019
@aLekSer Thanks again for the info. Then I will give it a try.
Yingxin-Jiang commentedon Feb 28, 2019
I can't reproduce the issue. Probably it's fixed by commit f6daaf1
aLekSer commentedon Mar 1, 2019
Running

stress-test-e2ewithSTRESS_TEST_LEVEL ?= 2GSS and Fleet Statuses differs only for a small amount of time and then got synced in seconds. And amount of Current GameServers never raise above desired 20 GameServers.markmandel commentedon Mar 1, 2019
Sounds like we can close this issue - and if it pops up again, reopen it?