Domain Redirect from VM instance from Bluehost

289 views
Skip to first unread message

Ishwara Bhat

unread,
Oct 17, 2017, 9:03:52 AM10/17/17
to gce-discussion
Hi,

I have a small ecommerce site. My primary DNS and hosting is in Bluehost. Some of the subdomains I intend to have on google  cloud. I have created Google cloud account and have created VM instance, installed whatever I needed. I have SSH access setup. I have not setup any App Engine application. Whatever I did is on VM instance.

Please confirm the following:
1. At my external DNS provider , I can setup the RECORD to point to the VM instance directly? Or it should be through App engine (after setting it up)? On my GCE VM instance if I install SSL certificate for a particular domain, it will check the domain user is trying to access?
2. If I have to setup SSL certificate for HTTS, where should i be? Should I set it up on primary host i.e. Bluehost or on VM instance on Google? I bought certificate for one domain. Since multiple subdomains are served from multiple locations, i should install it on both?
3. With regard to SSL, how do GCE and App engine fit together? do they compliment each other or they are totally separate (IaaS vs SaaS)?

Please let me know.

Ishwar

Navi Aujla (Google Cloud Support)

unread,
Oct 17, 2017, 4:59:40 PM10/17/17
to gce-discussion
Hello Ishwara,

First, to clarify, Google Compute Engine is an Infrastructure-as-a-service and App Engine is Platform-as-a-service. You can refer to this post [1] for more information. 

1. You can set up the required DNS records on your external DNS provider for the GCE VM server hosting your website. You will need to configure the web server with SSL certificate installed to serve the website with HTTPS. To host the website on Google cloud, you can configure Cloud DNS [2]. I was able to find this blog [3] which may be helpful to you. 

2. As you did not mention of Google cloud load balancer, you will need to install the certificate on the web server hosting the sub-domains (as you mentioned different locations, assuming you are serving subdomains on separate servers). You may want to check out Wildcard certificates [4] as well. 

3. If you are serving website on the GCE VM instance or the external server, then you need to install the SSL certificate on the web server hosting the website. If using App engine to host website, then you can set up the managed SSL certificate at no charge [5]

Ishwara Bhat

unread,
Oct 18, 2017, 12:48:08 PM10/18/17
to gce-discussion
Thanks a lot for the response.

Question 1:

As a startup, I am trying to be as optimized as possible. If I use App Engine, does it require more VM instances (which cost money)? I created hello world app and it did not create instances. But when i had added kubernetes containers (mandatory for auto scaling?) some days back, I had observed it added VMs under compute engine. It added cost of 3 instances). Later i changed the container engine settings (do not exactly remember how), but those vm isntances are gone now (which is good).

What features add VM instances automatically? If I use App Engine, would it require separate instance on cloud? 


Question 2: 
For Magento ecomemrce site, the one click solution on GCP uses IaaS. Do we have other option of one click setup on GAE? In that case, which VM isntance does it run? Do we get to control number of instances at project level? 

Question 3:

My site is part of free G suite. (when it was free I got it).  DNS is maintained by enom and from there i use gmail. For WWW i use bluehost. Now if I move only WWW to GCP , does it make sense? What is the advantage of having cloud DNS? My fear is if i move entire domain including DNS, how expensive does it get? What is the biggest source of cost in cloud? So far I understood that VM instance is the most expensive thing. Provision of auto-scaling (i understand that actual scaling would use more vm instances and will add to the cost. Otherwise in unused stage,  it costs only the vm instances cost listed under compute engine in the project. API support, DNS etc. are not the big sources of high cost.

Please clarify the above. I am kind of lost on how i should proceed on hosting Magento in cost effective way with SSL and scaling configuration, but does not cost too much money for current level of low traffic.

Hope the questions are clear and please guide.

Thanks
Ishwar

Navi Aujla (Google Cloud Support)

unread,
Oct 18, 2017, 3:40:54 PM10/18/17
to gce-discussion
1. You can use App Engine to deploy applications. Applications run as instances within the standard environment [1] or the flexible environment [2] based on Google Compute Engine. Both features autoscaling option. App Engine instances can be checked under GAE 'Instances' dashboard. More information on how instances are managed on App Engine, refer to this public help documentation link [3].

Google Container Engine(GKE) is a managed environment for deploying containerized applications. Container Engine environment consists of GCE instances. "Container Engine Clusters are powered by Kubernetes open source cluster management system." You can use container engine if you are familiar with the Kubernetes implementation. You can define the cluster size based on your requirement [4] You can check the container engine pricing information on this link [5]. 

2. You can use Magento VM image provided by Bitnami using cloud launcher [6] or set up the web server manually on a VM instance. For App Engine, there is no option for click to deploy from any available Google provide application configuration files. However, you can research to find if there are any public available configuration files for Magneto to deploy on App Engine. As mentioned earlier, App Engine provides the auto-scaling option.  

FYI: "Currently, Google App Engine standard environment supports Java, Python, PHP, and Go. Additionally, your website templates can include JavaScript along with your HTML which, among other things, allows you to write AJAX-enabled web applications ." [7]

3.  Google Cloud DNS is highly-performing, resilient DNS service. Moreover, it is very easy to manage the DNS records. For more information on pricing, refer to this public documentation link [8]. Cost depends upon the resources in use and You can check the price list based on the GCP products here [9].

Autoscaling is available on all three platforms: GCE, GAE, and GKE. For GCE, You can enable autoscaling on managed instance groups. For App Engine, you can set automatic-scaling in your application configuration file along with the based parameters. In GKE, Cluster autoscaler is a feature in beta stage. For more information on this for GKE refer to this documentation [10].

To estimate the cost, you can also use the pricing calculator

Ishwara Bhat

unread,
Oct 18, 2017, 10:22:09 PM10/18/17
to gce-discussion
"1. You can use App Engine to deploy applications. Applications run as instances within the standard environment [1] or the flexible environment [2] based on Google Compute Engine. Both features autoscaling option. App Engine instances can be checked under GAE 'Instances' dashboard. More information on how instances are managed on App Engine, refer to this public help documentation link [3]."

This means that technically - to begin with i can have one VM instance under GCE. On same instance I can install Google Apps which provides auto scaling. (Also SSL for HTTPS too? Please confirm. 


Somewhere I read that Magento can not run on GAE due to security restrictions on PHP. Hence it has to be run on GCE where the PHP support is more complete. Is it true? Also I did not find any documentation that shows how I install Magento on GAE. I find only for GCE. 



On question 2. I used Bitnami cloud launcher and am experimenting with it. But in this, GAE is not in picture. I am only on GCE. I had not seen any option during setup to "install on GAE". How to bring together the Magento on GCE  and  GAE?

It would be great help if i get through this phase.

Is there any pictorial representation that shows how GAE and GCE?

Navi Aujla (Google Cloud Support)

unread,
Oct 19, 2017, 3:18:32 PM10/19/17
to gce-discussion
Hello Ishwar,

To simplify, Google Compute Engine is an Infrastructure-as-a-service and you can create VM instance and configure the VM manually as per your requirements. For some services, you can use cloud launcher images which are pre-installed with the software/applications, which eventually will deploy a VM instance on GCE using that image. 

Now, Google App Engine is a Platform-as-a-service. You can deploy your application using the configuration file and Google cloud will take care of the infrastructure end (eg: machine-type, memory etc.) and it also has the auto-scaling feature as a default option. For more context on the App Engine, check out the video links [1][2]. When using App Engine you can use managed SSL certificate at no charge [3]. More information is available at this public documentation help link [4].

GCE and Google App Engine (GAE), both are separate platforms. You cannot install App Engine on the GCE. To use auto-scaling on the GCE, you can use managed instance group [5].

Now, Latest version of the Magento 2.2 requires PHP version 7.0.x or 7.1.x. However, App Engine Standard environment support PHP 5.5 but you can run your applications in App Engine using flexible environment [6]. In brief, you can use Magento in App Engine using flex environment. 

FYI: To know how GAE and GCE relate to each other in brief context, refer to this documentation link [7]

2. As mentioned in my first point, GAE and GCE are different platforms and implementation method for both is different. You have to proceed with the specific platform as per your requirement. 

I was able to find this video [8] from Google Cloud Next '17  which is based on 'Deciding between Compute Engine, Container Engine, App Engine and more'. 

For the pictorial representation, I found this link [9] which exhibit the architecture view of the web application running on GAE. For GCE, as mentioned in my message it is an Infrastructure-as-a-service providing you the infrastructure and could not find an illustrated image for it. 

I hope it helps. 

Ishwara Bhat

unread,
Oct 20, 2017, 1:56:15 AM10/20/17
to gce-discussion
Thank you so much. It is great help. I will study , experiment and then start fresh thread if any further queries. Since each of the offerings is world in itself, i am cautious before jumping in and lose the way.

Thanks.
Ishwar
Reply all
Reply to author
Forward
0 new messages