Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC-0030 - Add support to Diego for file based service bindings #942

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

dimitardimitrov13
Copy link

Summary

This PR is continuation for the RFC-0030

Backward Compatibility

Breaking Change? No

This feature is the first PoC for RFC-0030.
Since the CAPI implementation for RFC-0030 is not done yet, the PR doesn't need to be applied immediately.

@dimitardimitrov13 dimitardimitrov13 requested a review from a team as a code owner July 24, 2024 08:55
Copy link

linux-foundation-easycla bot commented Jul 24, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@dimitardimitrov13 dimitardimitrov13 changed the title RFC-0030/CFAR-929 RFC-0030 - Add support to Diego for file based service bindings Jul 25, 2024
.gitmodules Outdated
Comment on lines 7 to 9
url = https://github.com/dimitardimitrov13/bbs
branch = CFAR-929_VCAP_SERVICES
[submodule "src/code.cloudfoundry.org/auctioneer"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to me like an unwanted change here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. I need to run the Diego Release test suite first. After it passes, the modules will be reverted.

# Define the service binding root directory
volume_mounted_files="/var/vcap/data/rep/shared/garden/volume_mounted_files"

# Calculate the size for the tmpfs (1MB per container)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to increase the size of the diego footprint on the cell, which will reduce space for the containers themselves.

❓ Is additional space taken into account when the rep reports the resources on the cell to the BBS? It should be taken into account when this property is set to "auto".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, that's new for me. Would you elaborate further on this? Thanks.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my understanding, this https://github.com/cloudfoundry/executor/blob/main/initializer/configuration/configuration.go#L115 should be extended to add number_of_containers * 1MB to account for the 'overhead' that 'volume_mounted_files' will bring. Am I correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! That looks correct to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants