Optimize docker and solve memory issues #46

Merged
akrdzic merged 6 commits from optimize-docker into master 2018-10-24 15:37:33 +02:00
akrdzic commented 2018-10-24 12:49:46 +02:00 (Migrated from gitlab.com)

Optimize docker and solve memory issues

Details:

https://app.asana.com/0/697944902557002/880296706239050

Docker and live installations were very slow and memory usage was exploding for json requests.

Resolution:

  1. The biggest culprit was woocommerce itself because he was importing its frontend files on every api request. Fortunatelly they fixed this issue in their latest
    version, so woocommerce is updated to latest version.

  2. Remove unused plugins (akismet,hello-dolly,klarna-checkout-for-woocommerce,woocommerce-gateway-paypal-express-checkout, mailchimp-for-woocommerce, capability-manager-enhanced)

  3. Remove woocommerce-jetpack which we only use for prefixing order numbers but he is dragging json request down. Order number prefixing is implemented in this PR with hook on wooocommerce filter for order number.

  4. Added opcache in docker

Prepare:
Execute clean docker install (remove volume, remove docker resources)

Smoke test:

  1. Login as admin on backend

  2. Create customer and commercial lead organizations and users

  3. Create simple, template and bundle product following steps in (https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/42)

  4. Set prices to bundle product

  5. Login as commercial lead and set price extras

  6. Login as customer and order package

  7. During checkout process create new project for order and complete order

  8. Validate that order has prefixed number on frontend, admin interface and commercial lead interface.

  9. Open order as admin on backend and validate order project metabox uses radio buttons.

  10. Validate that Order project submenu is visible and admin can open it and create new order projects

  11. Validate that frontend interface is a lot faster than before.

**Optimize docker and solve memory issues** Details: https://app.asana.com/0/697944902557002/880296706239050 Docker and live installations were very slow and memory usage was exploding for json requests. Resolution: 1) The biggest culprit was woocommerce itself because he was importing its frontend files on every api request. Fortunatelly they fixed this issue in their latest version, so woocommerce is updated to latest version. 2) Remove unused plugins (`akismet`,`hello-dolly`,`klarna-checkout-for-woocommerce`,`woocommerce-gateway-paypal-express-checkout`, `mailchimp-for-woocommerce`, `capability-manager-enhanced`) 3) Remove `woocommerce-jetpack` which we only use for prefixing order numbers but he is dragging json request down. Order number prefixing is implemented in this PR with hook on wooocommerce filter for order number. 4) Added opcache in docker Prepare: Execute clean docker install (remove volume, remove docker resources) Smoke test: 1. Login as admin on backend 2. Create customer and commercial lead organizations and users 3. Create simple, template and bundle product following steps in (https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/42) 4. Set prices to bundle product 5. Login as commercial lead and set price extras 6. Login as customer and order package 7. During checkout process create new project for order and complete order 8. Validate that order has prefixed number on frontend, admin interface and commercial lead interface. 9. Open order as admin on backend and validate order project metabox uses radio buttons. 10. Validate that `Order project` submenu is visible and admin can open it and create new order projects 11. Validate that frontend interface is a lot faster than before.
akrdzic commented 2018-10-24 12:51:32 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
akrdzic commented 2018-10-24 13:25:25 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
akrdzic commented 2018-10-24 13:47:37 +02:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>59e60bef - handle order projects</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/46/diffs?diff_id=25783901&start_sha=e524e6d0d5fa05059f975752d96380d6bfbf5471)
akrdzic commented 2018-10-24 13:48:27 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
akrdzic commented 2018-10-24 13:48:41 +02:00 (Migrated from gitlab.com)

assigned to @bilal.catic

assigned to @bilal.catic
akrdzic commented 2018-10-24 14:17:58 +02:00 (Migrated from gitlab.com)

added 4 commits

  • 59e60bef...0b4243e3 - 3 commits from branch master
  • 1b5b8e25 - Merge branch 'master' into optimize-docker

Compare with previous version

added 4 commits <ul><li>59e60bef...0b4243e3 - 3 commits from branch <code>master</code></li><li>1b5b8e25 - Merge branch &#39;master&#39; into optimize-docker</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/46/diffs?diff_id=25789110&start_sha=59e60bef4daf5dd6abb17ad76b6c5fd09cfae4b3)
bilal.catic commented 2018-10-24 15:37:33 +02:00 (Migrated from gitlab.com)

merged

merged
bilal.catic commented 2018-10-24 15:37:36 +02:00 (Migrated from gitlab.com)

mentioned in commit 892571b179

mentioned in commit 892571b179a366b636f2dfc90aa5b3be1907f4f4
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-new-wiaas#46