These are chat archives for reactioncommerce/reaction

21st
Feb 2017
Dennis Öhman
@madsoulswe
Feb 21 2017 08:42
Is there a way to speed up the orders page. We have about 140 orders and our t2.large (even with meteorhacks:cluster), the server peeks to 100% cpu, even the browser crashes =/
Dennis Öhman
@madsoulswe
Feb 21 2017 10:10
And node crasches with "process out of memory" even with max_old_space_size and max_new_space_size is set to 4 GB when visiting orders page.
Brent Hoover
@zenweasel
Feb 21 2017 10:20
that’s strange because I am pretty sure we have people running production sites with significantly more orders than that
Are you running Kadira?
Dennis Öhman
@madsoulswe
Feb 21 2017 10:41
I'm deploying a version now with an authkey so I can use Kadira Debug =)
Lorenzo Campanis
@lcampanis
Feb 21 2017 10:59
@jshimko Can we somehow map the docker container file /private/settings/reaction.json for the default settings, to a reaction.json on the server. Trying to get default settings in place for a dev box easily once and for all..
Dennis Öhman
@madsoulswe
Feb 21 2017 12:47
blob
@zenweasel this is my chrome tab when I visit the orders page.
Dominik
@domi-nik-
Feb 21 2017 14:40
@madsoulswe are you using ubuntu 16.04?
Dennis Öhman
@madsoulswe
Feb 21 2017 14:44
@domi-nik- yes =)
Dennis Öhman
@madsoulswe
Feb 21 2017 14:55
@domi-nik- Ah, it's seems I'm running an affected version, so I will try upgrading =) Thanks!
Dominik
@domi-nik-
Feb 21 2017 15:13
@madsoulswe I hope that solves your problem...
Dennis Öhman
@madsoulswe
Feb 21 2017 15:23
@domi-nik- 20min and no crash
Jeremy Shimko
@jshimko
Feb 21 2017 15:44
@lcampanis well, you don’t really want to have app state built into a container, so an environment variable is still probably your best bet. You can do this:
docker run -p 80:3000 -d -e METEOR_SETTINGS=$(cat settings.json) ...
Lorenzo Campanis
@lcampanis
Feb 21 2017 15:45
that's for reaction.json we're looking for
Jeremy Shimko
@jshimko
Feb 21 2017 15:45
ah
Lorenzo Campanis
@lcampanis
Feb 21 2017 15:45
all the dashboard settings
Jeremy Shimko
@jshimko
Feb 21 2017 15:46
Well, yep. I’ve always thought it would be useful to have the same thing for that.
Lorenzo Campanis
@lcampanis
Feb 21 2017 15:46
looking for an easy way to host that file without committing it in the repo
we don't have one do we?
Jeremy Shimko
@jshimko
Feb 21 2017 15:46
not yet, but it wouldn’t bee too hard to add
$REACTION_REGISTRY maybe?
or $REACTION_SETTINGS
Lorenzo Campanis
@lcampanis
Feb 21 2017 15:47
yes! a env var for that, would be genius!
this way settings can easily be mapped for environments
Jeremy Shimko
@jshimko
Feb 21 2017 15:49
/server/api/core/loadSettings.js
Just need to check for the var right there and JSON.parse it if it exists. Then just use that instead of the following lines that read the file.
Lorenzo Campanis
@lcampanis
Feb 21 2017 15:54
got it thanks!
samuelgoff
@samuelgoff
Feb 21 2017 19:27
hi there, I'm currently holding my breath for calculated shipping. Last time I checked in, I heard this would be included with 0.19... Any idea when this will drop?
Brent Hoover
@zenweasel
Feb 21 2017 19:56
@samuelgoff If by calculated shipping you mean Shippo supported. It’s already on the development branch and should be merged into master any day now