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
info Total nodes: 84446, SitePage nodes: 20208
success Building static HTML for pages - 45.545s - 20208/20208 443.70/s
On my 2018 Macbook the build usually takes 12 minutes. The fan comes on and the laptop gets warm. However, on a 4CPU, 8G Ubuntu VM, it takes over 40 minutes and only 1 CPU is doing the work (see top output). I have also set/unset GATSBY_CPU_COUNT=4 and GATSBY_EXPERIMENTAL_QUERY_CONCURRENCY=2,4,16,32 to no avail.
info The following flags are active:
- PRESERVE_FILE_DOWNLOAD_CACHE · (Umbrella Issue
(https://gatsby.dev/cache-clearing-feedback)) · Don't delete the downloaded
files cache when changing gatsby-node.js & gatsby-config.js files.
- PARALLEL_SOURCING · EXPERIMENTAL · (Umbrella Issue
(https://gatsby.dev/parallel-sourcing-feedback)) · Run all source plugins at the
same time instead of serially. For sites with multiple source plugins, this can
speedup sourcing and transforming considerably.
- LMDB_STORE · EXPERIMENTAL · (Umbrella Issue
(https://gatsby.dev/lmdb-feedback)) · Store nodes in a persistent embedded
database (vs in-memory). Lowers peak memory usage. Requires Node v14.10 or
above.
- PARALLEL_QUERY_RUNNING · EXPERIMENTAL · (Umbrella Issue
(https://gatsby.dev/pqr-feedback)) · Parallelize running page queries in order
to better saturate all available cores. Improves time it takes to run queries
during gatsby build. Requires Node v14.10 or above.
ESC[2KESC[1AESC[2KESC[Gsuccess open and validate gatsby-configs, load plugins - 1.110s
ESC[2KESC[1AESC[2KESC[Gsuccess onPreInit - 0.006s
ESC[2KESC[1AESC[2KESC[Gsuccess initialize cache - 0.087s
ESC[2KESC[1AESC[2KESC[Gsuccess copy gatsby files - 0.054s
ESC[2KESC[1AESC[2KESC[Gsuccess Compiling Gatsby Functions - 0.276s
ESC[2KESC[1AESC[2KESC[Gsuccess onPreBootstrap - 0.291s
ESC[2KESC[1AESC[2KESC[Gsuccess createSchemaCustomization - 0.032s
<it's doing something here for a long time>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a large gatsby site with 20K mdx files.
PARALLEL_QUERY_RUNNING=true
LMDB_STORE=true
.info Total nodes: 84446, SitePage nodes: 20208
success Building static HTML for pages - 45.545s - 20208/20208 443.70/s
On my 2018 Macbook the build usually takes 12 minutes. The fan comes on and the laptop gets warm. However, on a 4CPU, 8G Ubuntu VM, it takes over 40 minutes and only 1 CPU is doing the work (see
top
output). I have also set/unsetGATSBY_CPU_COUNT=4
andGATSBY_EXPERIMENTAL_QUERY_CONCURRENCY=2,4,16,32
to no avail.build log
Beta Was this translation helpful? Give feedback.
All reactions