Comments (8)
Yeah, I thought about setting the cpus before as well so a PR for this is welcome.
from trellis.
give VM 1/4 system memory & access to all cpu cores on the host
A bit conflicted about this. Especially if you are working with a team. I have a beefy computer:
So my box is going to be running 8 cores and 4gb of memory. I feel I would be developing and a completely different environment with completely different constraints than someone with a macbook air or some other less beefy laptop.
Then again production is cached anyway. What do you guys think?
from trellis.
Using all the cores you have is fairly standard. Although we may want to cap that 1/4 of memory at like 2GB. I do agree it's a little crazy to use 4GB of ram for a dev VM.
from trellis.
If anything, that section could be commented out or something. At the very least, NFS will improve performance dramatically. Or people can change the values to something more appropriate per project. Or perhaps have default config files they could import? I have a 13" mbp, so 1/4 mem and all cpus is a base DO box. I know while I'm cranking things out, I don't like waiting on my development machine. I'd prefer to have faster results and then tweak later. Thoughts?—
Sent from Mailbox
On Sun, Sep 28, 2014 at 3:23 PM, Austin Pray [email protected]
wrote:
give VM 1/4 system memory & access to all cpu cores on the host
A bit conflicted about this. Especially if you are working with a team. I have a beefy computer:
So my box is going to be running 8 cores and 4gb of memory. I feel I would be developing and a completely different environment with completely different constraints than someone with a macbook air or some other less beefy laptop.Then again production is cached anyway. What do you guys think?
Reply to this email directly or view it on GitHub:
#62 (comment)
from trellis.
Capping at 2GB or even 1GB is reasonable. My sites barely reach 1GB of usage. Why not just set a cap at 1GB without doing the platform specific math? That is a fairly beefy linode/DO box and more memory isn't going to make a wordpress site only using 512mb faster. The NFS and CPU will be nice performance enhancers.
AustinMacbookPro:bedrock-ansible austinpray$ vagrant ssh -c 'cat /proc/meminfo'
MemTotal: 501776 kB
MemFree: 56992 kB
...
from trellis.
Also using 4GB of ram for a dev vm for me is a no-go because I usually have other VMs running such as modern.ie and friends that take their fair share.
from trellis.
I can get behind 1gb || 2gb cap. @swalkinshaw?
from trellis.
See #66
Decided to just hardcode it since it's way simpler. Anyone can customize now but at least the setting is there to see.
from trellis.
Related Issues (20)
- Feature Request: Support Ubuntu 22 deployments HOT 1
- Default mount type and slow VM HOT 6
- Action Required: Fix Renovate Configuration
- Feature Request: re-enable php opcache for dev-environments? HOT 4
- Bug: ERROR! couldn't resolve module/action 'community.general.alternatives' HOT 1
- Bug: uploads subfolders ownership HOT 1
- Bug: the role 'mailhog' was not found HOT 1
- Bug: MariaDB Serversetup skipped if we want to create multiple sites with remote db and local db
- Bug: `Check whether Ansible can connect as <user>` – passes when SSH connection fails HOT 2
- Bug: composer auth during wordpress install has loop var conflict HOT 1
- Bug: TLS 1.3 not working HOT 4
- Bug: latest curl version fails to retrieve urls on trellis managed hosts
- Feature Request: switch from ssmtp to msmtp
- Personal Data in Commit HOT 4
- Vagrant box with Ubuntu 22.04 on Apple silicon won't start HOT 2
- cron missing HOT 12
- 💡 Feature Request: Add ability to use vault pass lookup plugins by default. HOT 3
- PHP `8`: Enable `JIT` (`PHP` `INI` option) HOT 4
- Can't install galaxy dependencies on Python 3.12 HOT 1
- Officially support Ubuntu 24.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trellis.