File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/web/docs/src/content/migration-guides Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,24 @@ instructions to ensure a smooth transition.
8
8
9
9
v2 includes several breaking changes and improvements over v1. The most significant changes are:
10
10
11
+ - [ Disabled automatic forking] ( #forking )
11
12
- [ New Hive Logger for next-level observability and debugging] ( #hive-logger )
12
13
14
+ ## Disabled Automatic Forking
15
+
16
+ We were previously forking workers automatically in v1 when detecting ` NODE_ENV=production ` ;
17
+ however, forking workers for concurrent processing is a delicate process and if not done carefully
18
+ can lead to performance degradations. It should be configured with careful consideration by advanced
19
+ users.
20
+
21
+ In v2, the automatic forking of workers has been disabled by default. This means that the Hive
22
+ Gateway will no longer automatically create child processes to handle concurrent requests. Instead,
23
+ you can manually configure forking if needed.
24
+
25
+ You can configure forking in your ` gateway.config.ts ` file by using the ` fork ` option or using the
26
+ environment variable ` FORK ` . These options allow you to specify the number of worker processes to
27
+ fork.
28
+
13
29
## Hive Logger
14
30
15
31
The Hive Logger is a new feature in v2 that provides enhanced logging capabilities. It allows you to
You can’t perform that action at this time.
0 commit comments