GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Node-pool response always claims a node-pool has a single accelerator, even when it really has more. · Issue #3722 · googleapis/google-cloud-java

Node-pool response always claims a node-pool has a single accelerator, even when it really has more. #3722

New issue
Copy link
New issue
Copy link
Closed
Closed
Node-pool response always claims a node-pool has a single accelerator, even when it really has more.#3722
Copy link
Assignees
olavloite
Labels
api: containerIssues related to the Kubernetes Engine API API.type: questionRequest for information or clarification. Not an issue.

Description

@thorkilds
thorkilds
opened on Sep 24, 2018
Issue body actions

Given a node-pool like this (output from gcloud):

autoscaling:
  enabled: true
  maxNodeCount: 1
config:
  accelerators:
  - acceleratorCount: '2'
    acceleratorType: nvidia-tesla-p100
  diskSizeGb: 200
  diskType: pd-standard
  imageType: COS
  labels:
    consumer: batch
  machineType: custom-32-212992
  minCpuPlatform: Automatic
  oauthScopes:
  - [... lots of scopes ... ]
  preemptible: true
  serviceAccount: default
instanceGroupUrls:
- https://www.googleapis.com/compute/v1/projects/....
management: {}
name: mul-seq2seq-large
status: RUNNING
version: 1.10.7-gke.2

(scopes and instanceGroupUris shortened for brevity)

then I expect:

NodePool nodepool = clusterManagerClient.getNodePool(projectId, zone, clusterName, "mul-seq2seq-large");
System.out.println(nodepool.getConfig().getAcceleratorsCount());

to return 2 (as there are 2 gpus attached), but the API actually answers 1 ! Calling nodepool.getConfig().getAcceleratorsList() also gives you a list of a single entry with the name of the gpu chosen. I have not tried to have different gpus on a node (if it might have merged them somehow).

Activity

  1. thorkilds
    changed the title [-]Node-pool response always say a node-pool has a single accelerator, while it really has more.[/-] [+]Node-pool response always say a node-pool has a single accelerator, even when it really has more.[/+] on Sep 24, 2018
  2. thorkilds
    changed the title [-]Node-pool response always say a node-pool has a single accelerator, even when it really has more.[/-] [+]Node-pool response always claims a node-pool has a single accelerator, even when it really has more.[/+] on Sep 24, 2018
  3. JustinBeckwith
    added
    triage meI really want to be triaged.
    on Sep 24, 2018
  4. yihanzhen
    added
    type: questionRequest for information or clarification. Not an issue.
    api: containerIssues related to the Kubernetes Engine API API.
    on Sep 24, 2018
  5. JustinBeckwith
    removed
    triage meI really want to be triaged.
    on Sep 24, 2018
  6. olavloite
    self-assigned this
    on Jul 19, 2019
  7. olavloite commented on Jul 19, 2019

    @olavloite
    olavloite
    on Jul 19, 2019
    Contributor
    More actions

    @thorkilds It seems like it is working as it should, but the API is a little bit confusing in this case (it is an automatically generated API). There are two fields with different meanings:

    1. nodepool.getConfig().getAcceleratorsCount(): This returns the number of accelerator configurations. In the above example Each accelerator configuration has an accelerator count.
    2. nodepool.getConfig().getAcceleratorsList().get(0).getAcceleratorCount(): This will return the actual number of accelerators configured for the first accelerator configuration.

    So nodepool.getConfig().getAcceleratorsList().get(0).getAcceleratorCount() should return what you are looking for.

  8. olavloite
    closed this as completedon Jul 19, 2019
  9. suztomo
    added 2 commits that reference this issue on Mar 9, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    3d12777

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    660bac3
  10. lqiu96
    added 2 commits that reference this issue on Mar 20, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    559d45b

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    853b186
  11. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    deps: add opentelemetry gcp-resources to shared deps (#3722)

    4b94c7d

    chore(main): release 2.56.0 (#3715)

    741d398

    fix: add default implementations for Interval methods in AbstractStru…

    e860583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @olavloite
    olavloite

Labels

api: containerIssues related to the Kubernetes Engine API API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.