Good example of a larger business app using GraphQL: https://github.com/NZTA/SDLT/blob/28a15fd07f2336fcb8caa3c42a37a9072611295d/app/_config/graphql.yml. Thanks for sharing @null!
Security Development Lifecycle Tool. Contribute to NZTA/SDLT development by creating an account on GitHub.Hide attachment content
So much FOMO! How’s it going over there? More photos please! 📷
Hah, that … sounds familiar!
@Firesphere Did you end up making any advances into an ElasticSearch compat layer in
silverstripe-solr-search? I vaguely remember you talking about that. Obviously going to be a leaky abstraction, but on the
addField() level we could make it compatible. Just brainstorming at the moment, don’t get too spooked 😄
Aside: Elastic App Search looks quite nice from a dev/author/user/ops perspective, although I don’t really see a way to get from A to B on our platforms in a way that doesn’t double up all our efforts (and basically do everything half as good heh).
Quick survey for ya: https://twitter.com/chillu/status/1176247143692025856
Both 1 and 2 (and never 3)
Difference between 1 & 2 is the machine I'm working on :)
using a subdomain on a projectX.loc domain to access web interfaces of services…
run via docker and reverse proxy
I ticket your second option as out of the list it’s the closest thing
.localhost as there were some issues with it on some systems
I checked the second option too, because it's probably my preferred way. But I like diversity and am lazy so option 1 is also important to me (but can only choose one answer, thus this thread :>)
I'm using dnsmasq to control my whatever.localhost subdomains. Handy since I don't need to edit my /etc/hosts file anymore
I use a chromium variant, it doesn't need these tools for whatever reason (for
localhost as a TLD).
we update /etc/hosts in a startup script for each project, creating an entry if not already there, so not a big hassle
I don't think replying here will influence the poll @chillu started on Twitter though....
both nightjar and I voted there, perhaps null did too
OK you all got way too hung up on the specific TLD 😄 I don’t have enough characters in the Twitter survey to clarify
I should’ve just asked “Are you running SilverStripe in subfolders, either on dev or prod?”
waaaaay easier to make a vhost
always a separate host
Never in prod! 😱
In dev => "sometimes".
never in dev too
@max Can you think of ways that the thumbnail migration/generation task can still run out of memory? You’ve done some testing with 9MB images and 512MB of max PHP memory, but I think there’s more to it than that. Some images have higher compression ratios. Like, I can compress a 10000x10000px JPEG with 16 bit colour depth to 100KB, but it’s still going to be a lot of raw image memory
I haven't look at this in a while. I tried reasonably big images when testing, but I didn't try ones with unusual color palettes, so there might be some of that going on.
@MichalKleiner The main problem we were working was some memory allocation that just kept slowly creeping up until the migration task would run out of memory. Is that what you are seeing? Or do you get a big spike in memory usage?
If it's the slowly "incrementing" behavior you should be able to rerun the thumbnail migration and it will just pick off where it left off.
Otherwise we did find that using Imagick rather than Open GD was using less memory and was also faster.
We’ve addressed this before: https://github.com/silverstripe/silverstripe-framework/issues/8664
Affected Version Framework / assets 4.3.0-RC1 Description I have a site with gigabytes of files, and running vendor/silverstripe/framework/sake dev/tasks/MigrateFileTask causes out of memory errors...Hide attachment content
We do some heuristics in the framework to predict if there’s enough PHP memory to resize an image, but it’s not perfect. I think there’s some hints on how this works in https://github.com/silverstripe/silverstripe-assets/issues/69
Acceptance Criteria ImageManipulation::$force_resample changes its default from true to false PHPDoc and dev docs are updated to reflect this change If an image transformation is requested without ...Hide attachment content
Sorry for the disruption, security upgrades on various parts of http://forum.silverstripe.org are complete now
Do you know how much PHP memory your server had allocated, and any hints on why it would’ve exhausted the memory? The most likely candidate is thumbnail regeneration on large images. Do you have some logs of the tasks which broke?