[BUG]: Too many login sessions in gopowerstore client causes unexpected session termination in UI #1006
Labels
area/csi-powerstore
Issue pertains to the CSI Driver for Dell EMC PowerStore
type/bug
Something isn't working. This is the default label associated with a bug issue.
Milestone
Describe the solution you'd like
Many session requests from CSI driver and other modules making REST requests via the gopowerstore client. For example, in Observability (/api/rest/metrics/generate) around 1000 sessions per minute. it caused powerstore to cleanup the old sessions like existing GUI login session after exceed threshold 2000 sessions. Issue also seen when using in the powertore GUI, then after 2 min, the account was logout automatically due to this session cleaned.
The gopowerstore client should try to reuse the previous session and not create new sessions every time the REST API is used. This can help cut down on the number of active sessions on the array.
Describe alternatives you've considered
None. Client library handles connections.
Additional context
Problem may be alleviated if the gopowerstoer client reuses login sessions. Also saw that the CSI driver also makes hundreds of API calls (/api/rest/volume/, /api/rest/file_system, and /api/rest/nfs_export) when monitoring the volumes.
Problem impacts both the driver and modules.
The text was updated successfully, but these errors were encountered: