Skip to content

Commit efac01a

Browse files
committed
Reference Mongoid forking guidance from driver tutorial
1 parent d78af38 commit efac01a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/tutorials/ruby-driver-create-client.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ When ``#close`` is called on a client by any thread, all connections are closed:
679679
Usage with Forking Servers
680680
--------------------------
681681

682+
*Note:* Applications using Mongoid should follow `Mongoid's forking guidance
683+
<https://docs.mongodb.com/mongoid/current/tutorials/mongoid-configuration/#usage-with-forking-servers>`_.
684+
The sample code below is provided for applications using the Ruby driver directly.
685+
682686
When using the Mongo Ruby driver with a forking web server such as Unicorn,
683687
worker processes should generally each have their own Mongo::Client instances.
684688
This is because:

0 commit comments

Comments
 (0)