Git Product home page Git Product logo

Comments (4)

ashutosji avatar ashutosji commented on June 12, 2024

Check the logs:
https://console.cloud.google.com/cloud-build/builds;region=global/275a3e64-934b-4512-80a4-28ff3ad733c8;step=6?e=13803378&mods=logs_tg_prod&project=agones-images

Error: Getting Permission denied for all resources.

from agones.

roberthbailey avatar roberthbailey commented on June 12, 2024

The error is coming from https://github.com/googleforgames/agones/blob/main/test/load/allocation/runscenario/runscenario.go#L126

Looking at the code, I'm curious how it ever works, since we have a gofunc per client and they are all writing to the same shared map.

from agones.

markmandel avatar markmandel commented on June 12, 2024

Check the logs:
https://console.cloud.google.com/cloud-build/builds;region=global/275a3e64-934b-4512-80a4-28ff3ad733c8;step=6?e=13803378&mods=logs_tg_prod&project=agones-images

Error: Getting Permission denied for all resources.

Sorry about that, probably not public, here's a copy
log-275a3e64-934b-4512-80a4-28ff3ad733c8.txt

Looking at the code, I'm curious how it ever works, since we have a gofunc per client and they are all writing to the same shared map.

I guess it doesn't manage to synchronously mutate the map too often.

Some quick ideas, not sure which ones are best:

  • Some mutexes in the right places
  • There are a few sync Maps that are thread safe out there, could go pick one (one with generics support?)
  • Move stuff to channels?

from agones.

ashutosji avatar ashutosji commented on June 12, 2024

I guess it doesn't manage to synchronously mutate the map too often.

Some quick ideas, not sure which ones are best:

  • Some mutexes in the right places
  • There are a few sync Maps that are thread safe out there, could go pick one (one with generics support?)
  • Move stuff to channels?

I think placing mutex in the right places should work. I have created a small example for this use case: https://goplay.tools/snippet/N84X6jIZmIq

We can utilize the syncmap but syncmap is slow and has poor performance. Personally, I haven't done any benchmark testing but this is what i got from the internet.

from agones.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.