3

I work for a company that is going to use Magento2 Cloud Enterprise Edition. ( e-commerce website currently on development) Someone told me while deploying the source code, the database is locked and is on read only access. Is it true ?

I don't find any documentation about this on Magento docs. I found how to do a master / slave on EE ( not available on Cloud) but I really need to know if its true because it will change a lot for the architecture on AWS for me.

Thanks a lot for your reply.

1

I believe you have confused between read-only for filesystem and read-only for database.

For file-system, you have read only permission (e.g. you can not edit or create new file after SSH'ed on the server).

For database, you do have write permission for the master database. They are introducing slave database (which is a replica of the master database - but use as read-only for performance improvement).

Update for the bit I missed about DURING the deployment

During deployment (which inclusive of build phase and deploy phase) - the whole server will be unavailable during the deploy phase. If you have done a few tricks here and there according to the documentation - you can reduce the deploy phase to 1-2 minutes. But there will always be downtime during a deployment.

  • Thx for your reply. I was mainly talking about the deployment process. So you can assure me that during deployment the database is read AND write permissions ? – magento2-users Mar 8 '18 at 3:40
  • During deployment, your setup script will be able to write and read from the database. Are you having an external system connected to the Magento database and concern about this connection during deployment? – Alvin Nguyen Mar 8 '18 at 4:37
  • Hi thx you very much for your answer :) No it s just someone told me that the database was read - only on deployment. So I was thinking about how am i being able to sell products / or even register customer on my website if the database is read-only but as the databse is read and write during deployment its all good :) – magento2-users Mar 8 '18 at 6:13
  • No worries, glad I could help. – Alvin Nguyen Mar 8 '18 at 6:54
  • I should warn you though, that DURING deployment (which inclusive of build phase and deploy phase) - the whole server will be unavailable during the deploy phase. If you have done a few tricks here and there according to the documentation - you can reduce the deploy phase to 1-2 minutes. But there will always be downtime during a deployment. Sorry if I didn't make this clear before. – Alvin Nguyen Mar 8 '18 at 22:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.