Changes

Jump to navigation Jump to search

Run relax at Google Cloud Computing

1,520 bytes removed, 19:12, 28 November 2015
==Deploy google datalab to your server==
Read more here: http://techcrunch.com/2015/10/13/google-launches-cloud-datalab-an-interactive-tool-for-exploring-and-visualizing-data
Note: '''THIS IS NOT WORKINGCloud Datalab uses AppEngine and Managed VMs beta, which is available in the US region only.'''<br>'''You cannot change the location after the project has been created.''''
Read more hereStart your server: http://techcrunch.com/2015/10/13/google<source lang="bash">gcloud compute -launches-cloudproject $PROJ instances start -datalab-an-interactive-tool-for-exploring-and-visualizing-datazone $ZONE $PRIDssh gcc_relax</source>
Visit:
* Launch datalab
* Sign in
* Start your server:
gcloud compute --project "relax-1143" instances start --zone "europe-west1-c" "relax"
ssh gcc_relax
* Deploy to your project
 
Note: '''Cloud Datalab uses AppEngine and Managed VMs beta, which is available in the US region only.'''
 
===Move the project to another zone===
* See https://cloud.google.com/compute/docs/instances/moving-instance-across-zones
* See zones: https://cloud.google.com/compute/docs/zones
<source lang="bash">
gcloud compute --project "relax-1143" instances start --zone "europe-west1-c" "relax"
gcloud compute --project "relax-1143" instances move "relax" --zone "europe-west1-c" --destination-zone "us-central1-f"
</source>
 
=== Reconfigure ssh config===
<source lang="bash">
gcloud compute config-ssh --remove
cat $HOME/.ssh/config
 
gcloud compute --project "relax-1143" config-ssh
cat $HOME/.ssh/config
# ssh in
ssh relax.us-central1-f.relax-1143
exit
# Use sed to change value of your local computes ssh config file
grep 'relax.us-central1-f.relax-1143' $HOME/.ssh/config
sed 's/relax.us-central1-f.relax-1143/gcc_relax/g' $HOME/.ssh/config
sed -i.bak 's/relax.us-central1-f.relax-1143/gcc_relax/g' $HOME/.ssh/config
ls -l $HOME/.ssh/config*
grep 'gcc_relax' $HOME/.ssh/config
ssh gcc_relax
</source>
===Deploy again===
 
Cloud Datalab is deployed as an Google App Engine application module in a Google Developers Console project. Click here to Enable the Google Compute Engine API.<br>
https://console.developers.google.com/flows/enableapi?apiid=compute_component&redirect=https://console.developers.google.com/&_ga=1.83746902.1584957856.1448496848
 
The appengine should be changed to US<br>
https://appengine.google.com/ <br>
https://cloud.google.com/appengine/docs/developers-console/#server-location
 
'''You cannot change the location after the project has been created.''''
== See also ==
[[Category:Installation]]

Navigation menu