Skip to content

Commit 39b144a

Browse files
author
githubnemo
committed
Document polling workaround
1 parent e4782d7 commit 39b144a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,28 @@ If you still have too many open files, then you need to raise your process's fil
7878

7979
As described in [this issue](https://github.com/githubnemo/CompileDaemon/issues/23) it might happen that you run out of inotify watchers which are limited by your system configuration. Please consider increasing them as is documented [here](https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers).
8080

81+
### Docker + Mac OS X
82+
83+
Some issues ([here][1] and [here][2]) report that changes on Docker
84+
volumes under Mac OS X are not reported.
85+
86+
There seem to be issues with either the implementation of the bind file
87+
system mount between Mac OS X hosts and Docker containers or in
88+
`fsnotify/fsnotify` or a combination of both. As long as this is not
89+
resolved, a possible workaround is to use polling:
90+
91+
```
92+
CompileDaemon -polling
93+
```
94+
95+
This will actively watch for changes, so it naturally uses more CPU
96+
resources. You can tune the polling interval to your liking using the
97+
`-polling-interval=N` parameter but be advised: you should never use
98+
this in production as it is simply too wasteful.
99+
100+
[1]: https://github.com/githubnemo/CompileDaemon/issues/44
101+
[2]: https://github.com/githubnemo/CompileDaemon/issues/47
102+
81103
## Project Details
82104

83105
### Credits

0 commit comments

Comments
 (0)