description |
---|
Learn how to use a VM Launcher data operation to process some code on a VM. |
The VM Launcher data operation allows you to start a Google Compute Engine VM where you can execute a script in the language of your choice, and then to stop the VM automatically to save resources.
All languages (Python, R, JavaScript, etc.)
Every time a script file appears in a given directory of a Google Cloud Storage bucket:
- A VM with the specified characteristics is started on GCE.
- The instructions set in the JSON configuration file
script_to_execute
parameter are executed, and the script is launched. - Once the execution is complete, the VM is stopped automatically.
-
Access your tailer folder (created during installation).
-
Create a working folder as you want.
-
Create a JSON file for your data operation in your working folder. Refer to this page to learn about all the parameters.
-
Access your working folder by running the following command:
cd "[path to your working folder]"
-
To deploy the data operation, run the following command:
tailer deploy configuration your-configuration.json
-
Log in to Tailer Studio to check the status and details of your data operation.
-
For execute your VM Launcher data operation, place a script in the working folder.