# Performance & hardware requirements on multiple Hugo website instances

**URL:** <https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909>\
**Category:** support\
**Created:** [March 16, 2015, 2:48am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909 "2015-03-16T02:48:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grex84](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/grex84/32/321_2.png) [@grex84](https://discourse.gohugo.io/u/grex84)\
**Post date:** [March 16, 2015, 2:48am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909/1 "2015-03-16T02:48:06Z")

</div>

I know Hugo is advertised as being one of the fastest static website generators but what kind of hardware resources are being used when watching for changes? I plan on creating a service that will host many websites on the same server and auto build and deploy whenever a change is applied to either site. I’m just wondering how heavy this will become if there is a constant watch on hundreds of websites.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 16, 2015, 10:55am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909/2 "2015-03-16T10:55:25Z")

</div>

I don’t think anyone has tested it.

So, to get your answer … test it.

---

<div class="post-metadata">

**Author:** ![nathany](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nathany/32/173_2.png) [@nathany](https://discourse.gohugo.io/u/nathany)\
**Post date:** [March 17, 2015, 1:20am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909/3 "2015-03-17T01:20:00Z")

</div>

Hi,

The file watching in Hugo is courtesy of [fsnotify](https://fsnotify.org/), which wraps various OS-specific APIs. As such, it really depends on your deployment platform. Linux shouldn’t be much of a problem, but we haven’t done much in the way of CPU or memory profiling ([contributions are welcome](https://github.com/go-fsnotify/fsnotify/blob/master/CONTRIBUTING.md)). I know the current Mac implementation has some severe limits in terms of number of files per process, and also does utilize a small amount of CPU/battery while just waiting (it could be better).

All that said, you may be able to completely sidestep `hugo --watch` for your use case. Perhaps kicking off the build **only** when a deployment occurs, more along the lines of a Heroku deploy or continuous integration service.

The `--watch` flag is really just intended for local development/writing.

Nathan.

---

<div class="post-metadata">

**Author:** ![grex84](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/grex84/32/321_2.png) [@grex84](https://discourse.gohugo.io/u/grex84)\
**Post date:** [March 17, 2015, 1:46am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909/4 "2015-03-17T01:46:56Z")

</div>

Thanks for your insight and the info on fsnotify nathany.

“kicking off a build when a deployment occurs” is what i was originally planning on doing so i may just stick to that but if i decide on doing some performance profiling, i’ll be sure to post my results here.

---

<div class="post-metadata">

**Author:** ![nathany](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nathany/32/173_2.png) [@nathany](https://discourse.gohugo.io/u/nathany)\
**Post date:** [October 16, 2015, 6:10am UTC](https://discourse.gohugo.io/t/performance-hardware-requirements-on-multiple-hugo-website-instances/909/5 "2015-10-16T06:10:13Z")

</div>

My solution is to use CircleCI to do a build & deploy whenever I `git push` to master. My sample setup is here: [https://github.com/nathany/hugo-deploy](https://github.com/nathany/hugo-deploy)

What did you end up doing?
