Skip to content

Commit

Permalink
Add max number of volumes that can be attached to an instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bertinatto committed May 3, 2019
1 parent e539e1b commit 804353c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const (

// default file system type to be used when it is not provided
defaultFsType = FSTypeExt4

// maxVolumesPerNode is the maximum number of volumes that an AWS instance can have attached.
// More info at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html
maxVolumesPerNode = 39
)

var (
Expand Down Expand Up @@ -316,6 +320,7 @@ func (d *nodeService) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoReque

return &csi.NodeGetInfoResponse{
NodeId: m.GetInstanceID(),
MaxVolumesPerNode: maxVolumesPerNode,
AccessibleTopology: topology,
}, nil
}
Expand Down

0 comments on commit 804353c

Please sign in to comment.