Skip to content

Instantly share code, notes, and snippets.

@supercid
Last active Oct 15, 2019
Embed
What would you like to do?
PerfTestReminders

Install CTOP

wget https://github.com/bcicen/ctop/releases/download/v0.7.2/ctop-0.7.2-linux-amd64 -O /usr/local/bin/ctop
chmod +x /usr/local/bin/ctop

Get IP host machine with:

hostname -I | awk '{print $1}' I'm using debian-host on /etc/hosts inside the docker container

Allow root mysql access from anywhere:

  • vi /etc/mysql/mysql.conf.d/mysqld.cnf
  • Comment out bind-address 127.0.0.1

on MySQL:

GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'nosql'; FLUSH PRIVILEGES;

bash:

systemctl restart mysql

Open MySQL port externally:

ufw allow 3306/tcp

INVALIDATE

bin/magento indexer:reset nosto_index_product_invalidate; time bin/magento indexer:reindex nosto_index_product_invalidate

DATA

bin/magento indexer:reset nosto_index_product_data_sync; time bin/magento indexer:reindex nosto_index_product_data_sync

Set Dimensions

bin/magento indexer:set-dimensions-mode nosto_index_product_data_sync store export MAGE_INDEXER_THREADS_COUNT=3

Updating running containers memory:

docker update -m 8G magento2-perf3_web
docker update --kernel-memory 8G magento2-perf3_web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment