You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,6 @@
8
8
9
9
Codeigniter4-RoadRunner provides the synchroniztion of the Request and Response object between Roadrunner-Worker and Codeigniter4. Since Codeigniter4 doesn't implement [PSR-7 standard](https://codeigniter.tw/user_guide/intro/psr.html) completely, you need to use this library to allow your Codeigniter4 project to run using RoadRunner Server.
10
10
11
-
> This library is currently under development, and its functions are not yet stable. Do not use it in production environment.
Initialize Roadrunner and files using built-in commands in the library
29
27
@@ -55,7 +53,7 @@ http:
55
53
command: "php psr-worker.php"
56
54
# pool:
57
55
# numWorkers: 50
58
-
# maxJobs: 10
56
+
# maxJobs: 500
59
57
60
58
static:
61
59
enable: true
@@ -142,7 +140,21 @@ http:
142
140
command: "php psr-worker.php"
143
141
pool:
144
142
numWorkers: 1
145
-
maxJobs: 1
143
+
# maxJobs: 500
144
+
```
145
+
146
+
### Database Connection
147
+
148
+
We only focus on supporting the Codeigniter4 built-in [Database Library](https://codeigniter.com/user_guide/database/index.html), hence we do not guarantee if using the PHP
149
+
built-in method should work as normal. Therefore, you should avoid using the PHP built-in database connection method but
150
+
pick the Codeigniter4 framework built-in library.
151
+
152
+
Under the default situation, DB of the Worker should be lasting, and will try to reconnect once the connection is failed.
153
+
Every Request that goes into Worker is using a same DB connection instance. If you don't want this default setting but expecting
154
+
every Request to use the reconnect DB connection instance. You can add the configuration down below into the `.env` file under the root directory.
0 commit comments