Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azk - How to increase a VM memory in azk?

I am trying to increase the memory of VM into AZK. Is there some enviroment variable for do that? Can someone help me please?

azk (http://azk.io/)

like image 777
Bruno Agutoli Avatar asked Feb 25 '16 20:02

Bruno Agutoli


People also ask

Can you add memory to a running VM?

Right-click a virtual machine in the inventory and select Edit Settings. On the Virtual Hardware tab, expand Memory, and select Enable to enable adding memory to the virtual machine while it is turned on. Click OK.

Can you add more RAM to an Azure VM?

Yes this is possible with Azure VMs in different aspects: memory, storage, network, etc... it is referred as AutoScale.


1 Answers

The amount of memory must be set before starting azk agent. So, be sure the agent is down and run:

export AZK_VM_MEMORY=[memory size in MB]
azk agent start

As a shorthand, you can put the export command into your .profile, .bashrc or .zshrc file (depending on the shell you are using) to make that config persistent between different terminal sessions.

Note: by default, azk uses 1/6 of the total memory (or 512MB, whichever is greater) for the VM

like image 117
Nuxlli Avatar answered Sep 28 '22 12:09

Nuxlli