vAPI session maxSessionCount is consolidated within vpxd
search cancel

vAPI session maxSessionCount is consolidated within vpxd

book

Article ID: 375546

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 8.0

Issue/Introduction

Starting with 8.0U3, a single session allows users to execute SOAP as well as REST APIs. With these changes, session management is consolidated and would be done entirely within VPXD.

 

Environment

vCenter Server 8.0U3 or above

Cause

Following limits are applicable only to releases earlier than 8.0 U3. Starting with 8.0U3, a single session allows users to execute SOAP as well as REST APIs. With these changes, session management is consolidated and would be done entirely within VPXD.

  • vapi-endpoint enforces its own connection and session limits and the number of session per user is defined by the maxSessionsPerUser parameter in the /etc/vmware-vapi/endpoint.properties configuration file.

Unified Management and Automation API Sessions: Starting with vCenter 8.0 Update 3, you can combine vSphere Management API (VIM) and vSphere Automation API (vAPI) sessions, effectively unifying authentication across SOAP and REST vCenter endpoints.

Resolution

It can be configured through the common VPXD property ""config.vmacore.soap.maxSessionCount" in the "/etc/vmware-vpx/vpxd.conf" and is also available through the vSphere UI.

**The default maximum number of inflight sessions is now common for both the SOAP and VAPI sessions (as they are one thing) and is 3000.

  • Modify of the vpxd.cfg file
    • Take a backup of the vpxd.cfg from /etc/vmware-vpx/
    • Stop the vpxd service with the command: service-control --stop vmware-vpxd
    • Added the soap and maxsessioncount entries as per below:
       
<config>
   ...
   <vmacore>
      ...
      <soap>
         ...
         <maxSessionCount>6000</maxSessionCount>
         ...
      </soap>
      ...
   </vmacore>
   ...
</config>
  • vSphere Client
    • Add the following advanced setting to vCenter :
      • Configure->Settings->Advanced Settings you can add the following setting:
               Name: config.vmacore.soap.maxSessionCount

Additional Information

vCenter cloud account datacollection fails in Aria Automation with "The connection with vAPI endpoint can not be established failedToLoginMaxUserSessionCountReached"

https://knowledge.broadcom.com/external/article/312158/vcenter-cloud-account-datacollection-fai.html

 

Unified Management and Automation Session

https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere-sdks-tools/8-0/an-introduction-getting-started-with-vsphere-apis-and-sdks-8-0.html

 

Endpoint Limits for Concurrent REST Requests from vCenter APIs - VROOM! Performance Blog

https://blogs.vmware.com/performance/2022/07/endpoint-limits-for-concurrent-rest-requests-from-vcenter-apis.html