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

WIP: switch to using backblaze for images #948

Merged
merged 4 commits into from
Dec 20, 2024
Merged

WIP: switch to using backblaze for images #948

merged 4 commits into from
Dec 20, 2024

Conversation

simonv3
Copy link
Member

@simonv3 simonv3 commented Dec 19, 2024

This is a punt that switches to using backblaze for images

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for mirlo ready!

Name Link
🔨 Latest commit ebe678c
🔍 Latest deploy log https://app.netlify.com/sites/mirlo/deploys/676478ec9cfe5500086f11c1
😎 Deploy Preview https://deploy-preview-948--mirlo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

overshootDeringing: true, // required mozjpeg support
},
},
// jpeg: {
Copy link
Member Author

Choose a reason for hiding this comment

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

So I'm getting rid of these because they're not getting used in the UI, and I can't quite imagine why they'd get used, and we can always generate them in the future?

// seems to not like it when we bombard it with files all in one go,
// so when we do Promise.all at the end of this we're sending all the
// files and it just doesn't process anything but the first one.
await sleep((i + 1) * (j + 1) * 1500);
Copy link
Member Author

Choose a reason for hiding this comment

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

Having to sleep in these promises because if I don't then backblaze seems to get overwhelmed and returns an error 408

// FIXME: someone who's better at devops than me will have to figure out
// how we can serve these directly from minio
try {
stat = await minioClient.statObject(req.params.bucket, req.params.filename);
backblazeStat = await backblazeClient.send(

This comment was marked as resolved.

This comment was marked as resolved.

@simonv3 simonv3 marked this pull request as ready for review December 19, 2024 19:51
@simonv3 simonv3 merged commit f1633bb into main Dec 20, 2024
6 checks passed
@simonv3 simonv3 deleted the post-images branch December 20, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant