Comments (5)
/cc @igooch
from agones.
Defaulting is in the CRD:
agones/install/helm/agones/templates/crds/_gameserverspecschema.yaml
Lines 169 to 173 in 9534c07
from agones.
The number 0 is meaningful for Capacity (there's more places in fleetautoscaler, gameserverallocation, etc.):
agones/pkg/apis/agones/v1/gameserver.go
Lines 893 to 896 in 9534c07
agones/pkg/sdkserver/sdkserver.go
Lines 979 to 982 in 9534c07
It's only the MaxAvailable where 0 = max(int64):
agones/pkg/apis/allocation/v1/gameserverallocation.go
Lines 160 to 162 in 9534c07
We can set the default to 9223372036854775807, but I don't think we want to make 0 equal MaxInt64 because setting the Capacity to 0 is easiest way for the user to "delete" the Counter since they can't actually delete it.
from agones.
The number 0 is meaningful for Capacity (there's more places in fleetautoscaler, gameserverallocation, etc.):
aaah yeah, I can 100% see how that makes things way more complicated in the code. I agree, moving it to max(int64) is a better solution 👍🏻
Also making a note we should document this as well, as I think we don't document defaults for counter
capacity, but we do for Counters.
@igooch you want to take this, or @Kalaiselvi84 this could be good for you? it's mostly a change in the default specified in #3579 (comment) and then updating the docs around counter
default values in the example yamls and gameserver.md
reference (I think that's the only spots).
from agones.
I will take on this work..
from agones.
Related Issues (20)
- JSON Patch in GameServer Controller is Lossy on Int64 HOT 1
- runtime.boundsError from watchGameServer HOT 9
- Agones SDK for Unity Client Server example HOT 9
- SDK Server: Adopt Sidecar Containers HOT 1
- Rust CountsAndLists SDK implementation and conformance tests HOT 1
- Node.js CountsAndLists SDK implementation and conformance tests HOT 3
- C++ CountsAndLists SDK implementation and conformance tests
- Unity CountsAndLists SDK implementation HOT 1
- Unreal CountsAndLists SDK implementation
- Counters and Lists: Default Grafana dashboards
- Unreal implementation and conformance tests HOT 1
- Docs: Enhance "Scheduling and Autoscaling" with details on Counts and Lists
- Docs | Integration Patterns: Update Allocating based on GameServer Player Capacity to use Lists
- Docs | Integration Patterns: Update High Density GameServers to use a Counter
- Docs: Do you want a migration guide from Player Tracking to Lists?
- Migrate away from using the generate-groups script from k8s.io HOT 8
- Return Counter and List data when Allocating a GameServer HOT 6
- Adding GameServerSet Metric HOT 5
- Add pod label with allocation state HOT 8
- [ Terraform | GKE ] Add option to not create `agones-metrics` nodepools with cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agones.