|
77 | 77 | <h3>
|
78 | 78 | <a id="user-content-advanced-jvm-options-for-io" class="anchor" href="#advanced-jvm-options-for-io" aria-hidden="true"><span class="octicon octicon-link"></span></a>Advanced JVM Options for I/O</h3>
|
79 | 79 |
|
80 |
| -<p>Check <a href="configuration.html#user-content-24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations">this section</a> for more deitals about choice and configuration about <code>thread pool</code> , <code>coroutined</code> based socket or <code>asynchronous socket/channel</code>.</p> |
| 80 | +<p>Check <a href="configuration.html#24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations">this section</a> for more deitals about choice and configuration about <code>thread pool</code> , <code>coroutined</code> based socket or <code>asynchronous socket/channel</code>.</p> |
81 | 81 |
|
82 | 82 | <h3>
|
83 | 83 | <a id="user-content-some-useful-tips" class="anchor" href="#some-useful-tips" aria-hidden="true"><span class="octicon octicon-link"></span></a>Some Useful Tips</h3>
|
|
125 | 125 | <li>Because the maybe more than one nginx worker processes, so this code will run everytime per worker starting. </li>
|
126 | 126 | <li>If you use <a href="https://github.com/OpenHFT/Chronicle-Map">SharedHashMap/Chronicle-Map</a> to share data
|
127 | 127 | among nginx worker processes, Java file lock can be used to let only one nginx worker process do the initialization.</li>
|
128 |
| -<li>If you <a href="configuration.html#user-content-24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations">enabled coroutine support</a>, nginx maybe will start successfully even if your initialization failed after some socket operations. If you case it, you can |
| 128 | +<li>If you <a href="configuration.html#24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations">enabled coroutine support</a>, nginx maybe will start successfully even if your initialization failed after some socket operations. If you case it, you can |
129 | 129 | use <code>nginx.clojure.core/without-coroutine</code> to wrap your handler, e.g.</li>
|
130 | 130 | </ul>
|
131 | 131 |
|
|
295 | 295 | <span class="pl-s1"> '</span>;
|
296 | 296 | }</pre></div>
|
297 | 297 |
|
298 |
| -<p>You should set your JAR files or directory to class path, see <a href="configuration.html#user-content-21-jvm-path--class-path--other-jvm-options">2.1 JVM Path , Class Path & Other JVM Options</a> .</p> |
| 298 | +<p>You should set your JAR files or directory to class path, see <a href="configuration.html#21-jvm-path--class-path--other-jvm-options">2.1 JVM Path , Class Path & Other JVM Options</a> .</p> |
299 | 299 |
|
300 | 300 | <h2>
|
301 | 301 | <a id="user-content-24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations" class="anchor" href="#24-chose--coroutine-based-socket-or-asynchronous-socketchannel-or-thread-pool-for-slow-io-operations" aria-hidden="true"><span class="octicon octicon-link"></span></a>2.4 Chose Coroutine based Socket Or Asynchronous Socket/Channel Or Thread Pool for slow I/O operations</h2>
|
|
446 | 446 |
|
447 | 447 | <p>Asynchronous Socket/Channel Can be used with default mode or coroutined enabled mode without any additional settings. It just a set of API.
|
448 | 448 | It uses event driven pattern and works with a java callback handler or clojure function for callback. Asynchronous Channel is wrapper of Asynchronous Socket
|
449 |
| -for more easier usage. More examples can be found from this section <a href="more.html#user-content-36-asynchronous-channel">Asynchronous Socket/Channel</a>. </p> |
| 449 | +for more easier usage. More examples can be found from this section <a href="more.html#content-36-asynchronous-channel">Asynchronous Socket/Channel</a>. </p> |
450 | 450 |
|
451 | 451 | <h3>
|
452 | 452 | <a id="user-content-243-use-thread-pool" class="anchor" href="#243-use-thread-pool" aria-hidden="true"><span class="octicon octicon-link"></span></a>2.4.3 Use Thread Pool</h3>
|
|
0 commit comments