These are chat archives for reactioncommerce/reaction

3rd
Feb 2017
Aaron Judd
@aaronjudd
Feb 03 2017 03:34
@formula1 you might need to include {type: “simple”} in the query (or use .direct).
ie: Reaction.Collections.Products.remove(id, {type: "simple"});
Dennis Öhman
@madsoulswe
Feb 03 2017 11:56

Hi, we have problems with high-cpu usage, the logs shows this

Several of these:

11:38:55.808Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.808Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.808Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.812Z INFO Reaction: totalRequiredQty 1
11:38:55.812Z INFO Reaction: availableInventoryQty 0
11:38:55.812Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.813Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.813Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.816Z INFO Reaction: totalRequiredQty 1
11:38:55.816Z INFO Reaction: availableInventoryQty 0
11:38:55.817Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.817Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.817Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.821Z INFO Reaction: totalRequiredQty 1
11:38:55.821Z INFO Reaction: availableInventoryQty 0
11:38:55.821Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.822Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.822Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.825Z INFO Reaction: totalRequiredQty 1
11:38:55.825Z INFO Reaction: availableInventoryQty 0
11:38:55.826Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.826Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.826Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.830Z INFO Reaction: totalRequiredQty 1
11:38:55.830Z INFO Reaction: availableInventoryQty 0
11:38:55.830Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.831Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.831Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.834Z INFO Reaction: totalRequiredQty 1
11:38:55.834Z INFO Reaction: availableInventoryQty 0
11:38:55.835Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.835Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.835Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.839Z INFO Reaction: totalRequiredQty 1
11:38:55.839Z INFO Reaction: availableInventoryQty 0
11:38:55.839Z INFO Reaction: no inventory found, create 1 backorder
11:38:55.840Z ERROR Reaction: skipped bulk operations backorder updates.
11:38:55.840Z INFO Reaction: updating reservation status 1 of 1/1 items.
11:38:55.843Z INFO Reaction: totalRequiredQty 1
11:38:55.844Z INFO Reaction: availableInventoryQty 0
11:38:55.844Z INFO Reaction
then:
11:38:55.995Z INFO Reaction: finished creating 2 new shipped reservations
11:38:56.014Z WARN Reaction: No order email found. No notification sent.
100% cpu
11:45:42.306Z INFO Reaction: Sending notification to KnTGSpLAkeD8KJFoe
100% cpu
11:57:31.412Z INFO Reaction: Moving Inventory items from sold to shipped
11:57:31.421Z INFO Reaction: totalRequiredQty 1
11:57:31.421Z INFO Reaction: availableInventoryQty 0
11:57:31.422Z INFO Reaction: no inventory found, create 1 backorder
.....

Then it starts all over again, is there a way to turn of inventory and backorder? or can I just remove the inventory plugin. Because we don't have an inventory

Dennis Öhman
@madsoulswe
Feb 03 2017 13:46
Okay even if remove all server scripts from inventory I Still Get 100% frequently...
Aaron Judd
@aaronjudd
Feb 03 2017 14:27
@madsoulswe these aren’t errors for the most part (0.19 doesn’t display all this excess logging, so it’d doesn’t look so bad). This line here: 11:38:55.831Z ERROR Reaction: skipped bulk operations backorder updates.. is a known issue, that we’ve got to look at (I just discussed with @zenweasel a day or two ago). This should only be happening when MongoDB doesn’t support bulk updates (which is should be doing just fine). -> however I’d be suprised if this was cause of the CPU usage, but it looks like your tests show the CPU usage happening when notifications are sent..
Aaron Judd
@aaronjudd
Feb 03 2017 14:42
could it be that the mail is misconfigured? (I wonder if the send notification is blocking.. )
Aaron Judd
@aaronjudd
Feb 03 2017 15:15
@madsoulswe if you want to create an issue with steps to replicate that’d be helpful.