-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Correct template file for AWS_BACKUP_MULTIPART_CHUNK_SIZE env #1449
Conversation
Fixes sameersbn#1293 Correctly setup and configure the template in order to use chunked upload.
# multipart_chunk_size: 104857600 | ||
# Use multipart uploads when file size reaches 100MB, see | ||
# http://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html | ||
multipart_chunk_size: {{AWS_BACKUP_MULTIPART_CHUNK_SIZE}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be neat and for backwards compability to remove the multipart_chunk_size
when AWS_BACKUP_MULTIPART_CHUNK_SIZE
is not set. I think not everyone needs this directly.
Hey @drubin, |
@solidnerd Thanks for the incredibly fast reply. I am not exactly sure how to do "if" statements in the current templating language. Could it be as simple as a I have tried updating the commit to conditionally remove the multipart section if the ENV var is not passed in. I hope this is ok. It appears that Fog already has default https://github.com/fog/fog-aws/blob/master/lib/fog/aws/models/storage/file.rb#L214 which is lower than the gitlab default? Either way, this seems like a good option to allow us to configure it. |
Hey @drubin, thanks for your changes. I will test it later how it's working directly for the next release. I think everything is working as excepted. The fog-aws default is ~5Mb (5242880B). I will let you know if some changes are required again or not. |
@solidnerd Sure any time just ping me if you require any changes. Would you prefer I rebase/squash my commits into 1? |
I finally got the docker-compose setup installed, it seems as if my regex is not actually removing the inside blocks between the Am I doing something wrong? |
Hey @drubin, If prefer when the feature is complete a rebase to be easier revertable with the changes and are more clean history. |
@solidnerd What happens if we default the value to "null" instead of leaving it blank it would have the same effect no? |
I think the value of the variable isn't the Problem. What I See now is that
in your If condition your variables needs to be qouted so i will look like
this `"${AWS_BACKUP_MULTIPART_CHUNK_SIZE}"`
Am 29.12.2017 15:14 schrieb "David Rubin" <[email protected]>:
… @solidnerd <https://github.com/solidnerd> What happens if we default the
value to "null" instead of leaving it blank it would have the same effect
no?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1449 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2Gb9ONbijvU3ZaUizZui9NfNEAs9n8ks5tFPO4gaJpZM4RM-YF>
.
|
Ah okay Email replies doesn't support Markdown |
@solidnerd That isn't the issue because I added debug statements inside the IF statement from the functions. I am going to keep trying to figure this out as this is something I would really like to see. What is the policy about submitting releases that don't directly correspond to gitlab releases? Or would this fix have to wait for the next gitlab release? |
Nope there is no need to wait for the next GitLab release. This is a fix of
the current behaviour so a release cloud have an own Tag (10.3.2-1) or it
will live on latest until the next GitLab Release ist available.
Am 29.12.2017 15:36 schrieb "David Rubin" <[email protected]>:
@solidnerd <https://github.com/solidnerd> That isn't the issue because I
added debug statements inside the IF statement from the functions.
I am going to keep trying to figure this out as this is something I would
really like to see.
What is the policy about submitting releases that don't directly correspond
to gitlab releases? Or would this fix have to wait for the next gitlab
release?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1449 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2GbyYxJakBYnTae9epoRywT7ZFyX2Qks5tFPjbgaJpZM4RM-YF>
.
|
75e60b6
to
94d5f68
Compare
@solidnerd, in that case, would you mind me adding a flag for |
Feel free to do it. Also the storage_class is missing. For more information have a look in the upstream https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L547 |
…kups Also refactor the multi part config to match
68b6293
to
5ea41eb
Compare
@solidnerd I managed to get it working, I think there was an issue with the I have also added config options for AES encryption as well as storage class options and updated the readme. Let me know if it works for you, or if you would like any other changes |
It will be in the next release we didn't a separate release for this because 10.3.3 is available now. |
Thanks |
Fixes #1293
Correctly set up and configure the template in order to use chunked
upload.
It seems that @solidnerd introduced this feature in 607df08 (thanks we require this as well)
But it doesn't appear to work. #1293 and we are also having issues with larger uploads
I have simply enabled parsing this file as the docs recommend https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L544
I hope this is correct? Else please point me in the right direction.