Open in app

Sign In

Write

Sign In

Abhishek Jakhotiya
Abhishek Jakhotiya

56 Followers

Home

About

Feb 18

AWS systems manager to run operations

We host Ecommerce stores on our EC2 instances. A lot of times we need to make modifications to our servers. Logging in to each instance and doing operations is tedious. Imagin having to login to 20+ servers and changing into directories and running same commands over and over. Tedious right…

AWS

3 min read

AWS systems manager to run operations
AWS systems manager to run operations
AWS

3 min read


Jan 6

The case of i-node depletion

UAT server was down with 502. We logged into the server and saw nginx was dead. Upon trying to restart, it would say nginx: [emerg] open() “log/access.log” failed (28: No space left on device) Naturally you check if the disk space is full and you run following command df -lh As you can see /mnt1 has 29% diskspace. Then what is the problem? Then we check if OS ran out of i-nodes df -ih

Linux

1 min read

The case of i-node depletion
The case of i-node depletion
Linux

1 min read


Dec 23, 2022

Important!! Robots.txt gone wrong!

We use AWS cloud to host ecommerce stores that scale with traffic. Problem statement Recently we noticed that we had high traffic on our servers and servers were Autoscaling to match the traffic. Upon inspection we found, traffic was from GoogleBot. We looked at the URL’s and realized, GoogleBot was…

2 min read

Important!! Robots.txt gone wrong!
Important!! Robots.txt gone wrong!

2 min read


Jul 4, 2022

Magento Internals: Cache Purging and Cache Tags

You buy a Megamenu extension from the Marketplace. The extension works perfectly fine on the local system. You now put this extension on the staging and content team starts making changes. They flush cache several times and they report that their changes are not reflecting. What’s wrong? You have tested…

Magento 2

5 min read

Magento Internals: Cache Purging and Cache Tags
Magento Internals: Cache Purging and Cache Tags
Magento 2

5 min read


Jun 30, 2022

Magento Internals: Applications and Default Area code

Magento has concept of applications and application areas. As of now, you can find 5 applications in Magento 2 and hence 5 different entry points to codebase. HTTP application ( \Magento\Framework\App\Http ) Entry point for end users. Found in pub/index.php Media Storage application ( \Magento\MediaStorage\App\Media ) (pub/get.php) This serves images…

Magento 2

3 min read

Magento 2

3 min read


Jun 28, 2022

Performance data

Performance is measured on my 8 core 20GB RAM machine. When measuring I’m using 6x CPU throttle and slow 3G. In network tab check “Disable cache”. Enable https and http2 on local using devcert. My nginx conf looks like following server { listen 80; server_name m24.to; set $MAGE_ROOT /var/www/m24; set $MAGE_DEBUG_SHOW_ARGS 1; include /var/www/m24/nginx.conf; } server { listen 443 ssl http2; server_name m24.to; set $MAGE_ROOT /var/www/m24; set $MAGE_DEBUG_SHOW_ARGS 1;

1 min read

1 min read


Jun 26, 2022

Magento 2 : Does javascript bundling make any difference?

There are currently 4 ways to deliver javascript in Magento 2. Don’t bundle or merge at all. Use built-in bundling. Merge javascripts. Use a tool like Baler, Magepack, Or do it yourself by following this Should you even care about how javascript is being delivered? Well, if LCP of your…

Magento 2

5 min read

Magento 2 : Does javascript bundling make any difference?
Magento 2 : Does javascript bundling make any difference?
Magento 2

5 min read


May 30, 2021

PHP FPM shutdown behavior

Lets say your php script takes a lot of time to process but nginx closes the connection and you see a 502 screen. What happens to your php execution? Here, we want to understand php processes shutdown behavior. In this context, exploring register_shutdown_function behavior is relevant. We will explore 6…

PHP

4 min read

PHP FPM shutdown behavior
PHP FPM shutdown behavior
PHP

4 min read


Oct 20, 2020

Note: Magento 2 development environment in general

Of course you gotta have PHPSTORM. Install nginx,php-fpm and composer, nodejs all projects go in /var/www directory nginx conf file name for domain names used on local should have pattern example.to.conf https://www.npmjs.com/package/maildev Setup maildev for local email testing. bashrc contains code to show me current git branch I’m working on …

Magento 2

2 min read

Magento 2

2 min read


Oct 20, 2020

M2 Note: Classes for building rest client in your extension

This is about using Magento 2 internal classes useful for building restapi client in your magento extension. \Magento\Framework\Oauth\Oauth Oauth class will help you deal with REST authorization. Interesting function is `buildAuthorizationHeader` . Of course you should inject \Magento\Framework\Oauth\OauthInterface in your code instead of the class. \Magento\Framework\Serialize\Serializer\Json For building valid json bodies.

Magento 2

1 min read

Magento 2

1 min read

Abhishek Jakhotiya

Abhishek Jakhotiya

56 Followers

just a bug hunter and problem addict

Following
  • Eric Elliott

    Eric Elliott

  • Yegor Shytikov

    Yegor Shytikov

  • Netflix Technology Blog

    Netflix Technology Blog

  • Param Aggarwal

    Param Aggarwal

  • Nina Zakharenko

    Nina Zakharenko

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech