I noticed that when i run my normal flyctl deploy command, the memory sizes of all my machines reset back to shared-cpu-1x@1024MB, and i need to keep them at shared-cpu-1x@512MB:
If you change the CPU and memory using flyctl commands, and you also have a [[vm]] section in your fly.toml file, then when you deploy your app the [[vm]] settings take precedence. Update the [[vm]] section in fly.toml and then that setting will be used when you deploy.