@fastly/compute-js-static-publish 8.0.0-beta.10 → 8.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-content.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/manage/publish-content.ts"],"names":[],"mappings":"AAuGA,wBAAsB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,iBAkgBhD"}
1
+ {"version":3,"file":"publish-content.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/manage/publish-content.ts"],"names":[],"mappings":"AA8GA,wBAAsB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,iBA8hBhD"}
@@ -50,6 +50,10 @@ Optional:
50
50
 
51
51
  --overwrite-existing Always overwrite existing entries in storage, even if unchanged.
52
52
 
53
+ --brotli-quality=<0-11> Brotli quality for the 'br' variants. Overrides
54
+ brotliQuality in the config file.
55
+ Default: brotliQuality from publish-content.config.js, or 11
56
+
53
57
  Expiration:
54
58
  --expires-in=<duration> Expiration duration from now.
55
59
  Examples: 3d, 12h, 15m, 1w
@@ -75,6 +79,9 @@ S3 Storage Options (BETA):
75
79
  If not set, the tool will check the S3_ACCESS_KEY_ID
76
80
  and S3_SECRET_ACCESS_KEY environment variables.
77
81
 
82
+ --s3-upload-concurrency=<1-256> Number of objects to upload at the same time.
83
+ Default: 64
84
+
78
85
  Global Options:
79
86
  -h, --help Show this help message and exit.
80
87
 
@@ -92,6 +99,7 @@ export async function action(actionArgs) {
92
99
  { name: 'collection-name', type: String, },
93
100
  { name: 'root-dir', type: String, },
94
101
  { name: 'overwrite-existing', type: Boolean },
102
+ { name: 'brotli-quality', type: String },
95
103
  { name: 'expires-in', type: String },
96
104
  { name: 'expires-at', type: String },
97
105
  { name: 'expires-never', type: Boolean },
@@ -100,6 +108,7 @@ export async function action(actionArgs) {
100
108
  { name: 'kv-overwrite', type: Boolean },
101
109
  { name: 's3-access-key-id', type: String, },
102
110
  { name: 's3-secret-access-key', type: String, },
111
+ { name: 's3-upload-concurrency', type: String, },
103
112
  ];
104
113
  const parsed = parseCommandLine(actionArgs, optionDefinitions);
105
114
  if (parsed.needHelp) {
@@ -111,7 +120,17 @@ export async function action(actionArgs) {
111
120
  help();
112
121
  return;
113
122
  }
114
- const { verbose, config: configFilePathValue, ['collection-name']: collectionNameValue, ['root-dir']: rootDir, ['overwrite-existing']: _overwriteExisting, ['expires-in']: expiresIn, ['expires-at']: expiresAt, ['expires-never']: expiresNever, local: localMode, ['fastly-api-token']: fastlyApiToken, ['kv-overwrite']: _kvOverwrite, ['s3-access-key-id']: s3AccessKeyId, ['s3-secret-access-key']: s3SecretAccessKey, } = parsed.commandLineOptions;
123
+ const { verbose, config: configFilePathValue, ['collection-name']: collectionNameValue, ['root-dir']: rootDir, ['overwrite-existing']: _overwriteExisting, ['brotli-quality']: brotliQualityValue, ['expires-in']: expiresIn, ['expires-at']: expiresAt, ['expires-never']: expiresNever, local: localMode, ['fastly-api-token']: fastlyApiToken, ['kv-overwrite']: _kvOverwrite, ['s3-access-key-id']: s3AccessKeyId, ['s3-secret-access-key']: s3SecretAccessKey, ['s3-upload-concurrency']: s3UploadConcurrencyValue, } = parsed.commandLineOptions;
124
+ let s3UploadConcurrency;
125
+ if (s3UploadConcurrencyValue !== undefined) {
126
+ if (typeof s3UploadConcurrencyValue !== 'string' || !/^\d+$/.test(s3UploadConcurrencyValue) ||
127
+ Number(s3UploadConcurrencyValue) < 1 || Number(s3UploadConcurrencyValue) > 256) {
128
+ console.error(`❌ --s3-upload-concurrency must be an integer from 1 to 256.`);
129
+ process.exitCode = 1;
130
+ return;
131
+ }
132
+ s3UploadConcurrency = Number(s3UploadConcurrencyValue);
133
+ }
115
134
  const overwriteExisting = _overwriteExisting ?? _kvOverwrite;
116
135
  // compute-js-static-publisher cli is always run from the Compute application directory
117
136
  // in other words, the directory that contains `fastly.toml`.
@@ -148,6 +167,17 @@ export async function action(actionArgs) {
148
167
  process.exitCode = 1;
149
168
  return;
150
169
  }
170
+ // --brotli-quality overrides brotliQuality in the config file.
171
+ let brotliQualitySource = 'config';
172
+ if (brotliQualityValue !== undefined) {
173
+ if (typeof brotliQualityValue !== 'string' || !/^\d+$/.test(brotliQualityValue) || Number(brotliQualityValue) > 11) {
174
+ console.error(`❌ --brotli-quality must be an integer from 0 to 11.`);
175
+ process.exitCode = 1;
176
+ return;
177
+ }
178
+ publishContentConfig.brotliQuality = Number(brotliQualityValue);
179
+ brotliQualitySource = '--brotli-quality';
180
+ }
151
181
  const publicDirRoot = path.resolve(rootDir != null ? rootDir : publishContentConfig.rootDir);
152
182
  if ((computeAppDir + '/').startsWith(publicDirRoot + '/')) {
153
183
  if (verbose) {
@@ -168,7 +198,7 @@ export async function action(actionArgs) {
168
198
  }
169
199
  console.log(`✔️ Public directory '${rootRelative(publicDirRoot)}'.`);
170
200
  if (publishContentConfig.brotliQuality != null) {
171
- console.log(`✔️ Brotli quality: ${publishContentConfig.brotliQuality}`);
201
+ console.log(`✔️ Brotli quality: ${publishContentConfig.brotliQuality} (from ${brotliQualitySource})`);
172
202
  }
173
203
  const publishId = staticPublisherRc.publishId;
174
204
  console.log(` | Publish ID: ${publishId}`);
@@ -185,6 +215,7 @@ export async function action(actionArgs) {
185
215
  fastlyApiToken,
186
216
  s3AccessKeyId,
187
217
  s3SecretAccessKey,
218
+ s3UploadConcurrency,
188
219
  });
189
220
  }
190
221
  catch (err) {
@@ -2,9 +2,10 @@ import { S3Client } from '@aws-sdk/client-s3';
2
2
  import { type Command, type HttpHandlerOptions } from '@aws-sdk/types';
3
3
  import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch, type ApplyBatchOptions } from './storage-provider.js';
4
4
  type CommandOutput<C> = C extends Command<any, any, any, infer O, any> ? O : never;
5
+ export declare const DEFAULT_S3_UPLOAD_CONCURRENCY = 64;
5
6
  export declare const buildStoreProvider: StorageProviderBuilder;
6
7
  export declare class S3StorageProvider implements StorageProvider {
7
- constructor(fastlyServiceId: string | undefined, fastlyApiToken: string | undefined, s3Region: string, accessKeyId: string, secretAccessKey: string, s3Bucket: string, s3Endpoint?: string);
8
+ constructor(fastlyServiceId: string | undefined, fastlyApiToken: string | undefined, s3Region: string, accessKeyId: string, secretAccessKey: string, s3Bucket: string, s3Endpoint?: string, uploadConcurrency?: number);
8
9
  private readonly fastlyServiceId?;
9
10
  private readonly fastlyApiContext?;
10
11
  private readonly s3Region;
@@ -12,6 +13,7 @@ export declare class S3StorageProvider implements StorageProvider {
12
13
  private readonly secretAccessKey;
13
14
  private readonly s3Bucket;
14
15
  private readonly s3Endpoint?;
16
+ private readonly uploadConcurrency;
15
17
  private s3Client?;
16
18
  getS3Client(): S3Client;
17
19
  sendS3ClientCommand<C extends Command<any, any, any, any, any>>(command: C, options?: HttpHandlerOptions): Promise<CommandOutput<C>>;
@@ -1 +1 @@
1
- {"version":3,"file":"s3-storage-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/s3-storage-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAUL,QAAQ,EAIT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAuB/B,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEnF,eAAO,MAAM,kBAAkB,EAAE,sBAuDhC,CAAC;AAGF,qBAAa,iBAAkB,YAAW,eAAe;gBAErD,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,cAAc,EAAE,MAAM,GAAG,SAAS,E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,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC;IAaV,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW9C,UAAU,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IA+BvF,oBAAoB,CAAC,OAAO,SAAS;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EACxD,OAAO,EAAE,OAAO,EAAE,EAClB,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EAC/D,aAAa,GAAE,MAAW,EAC1B,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC,IAAI,CAAC;IAmBhB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA4B7D"}
@@ -3,6 +3,8 @@
3
3
  * Licensed under the MIT license. See LICENSE file for details.
4
4
  */
5
5
  import fs from 'node:fs';
6
+ import http from 'node:http';
7
+ import https from 'node:https';
6
8
  import path from 'node:path';
7
9
  import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, PutObjectCommand, S3Client, S3ServiceException, paginateListObjectsV2, } from '@aws-sdk/client-s3';
8
10
  import { isS3StorageConfigRc, } from '../../models/config/static-publish-rc.js';
@@ -14,6 +16,10 @@ import { rootRelative, } from '../util/files.js';
14
16
  import { loadApiToken, } from '../util/api-token.js';
15
17
  import { readServiceId, } from '../util/fastly-toml.js';
16
18
  import { purgeSurrogateKey, } from '../util/purge.js';
19
+ // The number of objects to upload at the same time. S3 accepts many parallel
20
+ // requests, and each request mostly waits for the network. In a test with small
21
+ // objects, 64 was approximately 4 times faster than 12.
22
+ export const DEFAULT_S3_UPLOAD_CONCURRENCY = 64;
17
23
  export const buildStoreProvider = async (config, context) => {
18
24
  if (isS3StorageConfigRc(config)) {
19
25
  console.log(` Working on S3 (or compatible) storage (BETA)...`);
@@ -49,10 +55,11 @@ export const buildStoreProvider = async (config, context) => {
49
55
  console.log(`✔️ Fastly API Token: ${apiTokenResult.apiToken.slice(0, 4)}${'*'.repeat(apiTokenResult.apiToken.length - 4)} from '${apiTokenResult.source}'`);
50
56
  apiToken = apiTokenResult.apiToken;
51
57
  }
52
- return new S3StorageProvider(serviceId, apiToken, region, s3CredentialsResult.s3AccessKeyId, s3CredentialsResult.s3SecretAccessKey, bucket, endpoint);
58
+ return new S3StorageProvider(serviceId, apiToken, region, s3CredentialsResult.s3AccessKeyId, s3CredentialsResult.s3SecretAccessKey, bucket, endpoint, context.s3UploadConcurrency ?? DEFAULT_S3_UPLOAD_CONCURRENCY);
53
59
  };
54
60
  export class S3StorageProvider {
55
- constructor(fastlyServiceId, fastlyApiToken, s3Region, accessKeyId, secretAccessKey, s3Bucket, s3Endpoint) {
61
+ constructor(fastlyServiceId, fastlyApiToken, s3Region, accessKeyId, secretAccessKey, s3Bucket, s3Endpoint, uploadConcurrency = DEFAULT_S3_UPLOAD_CONCURRENCY) {
62
+ this.uploadConcurrency = uploadConcurrency;
56
63
  this.fastlyServiceId = fastlyServiceId;
57
64
  this.fastlyApiContext = fastlyApiToken != null ? { apiToken: fastlyApiToken } : undefined;
58
65
  this.s3Region = s3Region;
@@ -65,7 +72,14 @@ export class S3StorageProvider {
65
72
  if (this.s3Client != null) {
66
73
  return this.s3Client;
67
74
  }
75
+ // The SDK default is 50 sockets. Use at least one socket for each
76
+ // concurrent upload, so that uploads do not wait for a socket.
77
+ const maxSockets = Math.max(50, this.uploadConcurrency);
68
78
  this.s3Client = new S3Client({
79
+ requestHandler: {
80
+ httpAgent: new http.Agent({ keepAlive: true, maxSockets }),
81
+ httpsAgent: new https.Agent({ keepAlive: true, maxSockets }),
82
+ },
69
83
  region: this.s3Region,
70
84
  endpoint: this.s3Endpoint,
71
85
  forcePathStyle: this.s3Endpoint != null,
@@ -184,14 +198,14 @@ export class S3StorageProvider {
184
198
  if (existingKeys != null) {
185
199
  toWrite = entriesToUpload(toWrite, existingKeys);
186
200
  }
187
- console.log(`📤 Uploading entries to S3 storage.`);
201
+ console.log(`📤 Uploading ${toWrite.length} entries to S3 storage (${this.uploadConcurrency} at a time).`);
188
202
  // fastlyApiContext is non-null if useKvStore is true
189
203
  await this.doConcurrentParallel(toWrite, async ({ filePath, metadataJson }, key) => {
190
204
  // const fileStream = fs.createReadStream(filePath);
191
205
  const fileData = fs.readFileSync(filePath);
192
206
  await this.submitStorageEntry(key, filePath, fileData, metadataJson);
193
207
  console.log(` 🌐 Submitted asset "${rootRelative(filePath)}" to S3 storage with key "${key}".`);
194
- }, 12, true);
208
+ }, this.uploadConcurrency, true);
195
209
  console.log(`✅ Uploaded entries to S3 storage.`);
196
210
  }
197
211
  async doConcurrentParallel(objects, fn, maxConcurrent = 12, throwOnError = false) {
@@ -37,6 +37,7 @@ export type StorageProviderBuilderContext = {
37
37
  fastlyApiToken?: string;
38
38
  s3AccessKeyId?: string;
39
39
  s3SecretAccessKey?: string;
40
+ s3UploadConcurrency?: number;
40
41
  };
41
42
  export type StorageProviderBuilder = (config: StaticPublishRc, context: StorageProviderBuilderContext) => (Promise<StorageProvider | null> | StorageProvider | null);
42
43
  export declare function registerStorageProviderBuilder(builder: StorageProviderBuilder): void;
@@ -1 +1 @@
1
- {"version":3,"file":"storage-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/storage-provider.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,eAAe,EACrB,MAAM,0CAA0C,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM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iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAG9B,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,qBAAa,oBAAoB;;IAI/B,2BAA2B,EAAE,yBAAyB,EAAE,CAAC;IACzD,GAAG,CAAC,KAAK,EAAE,yBAAyB;CAGrC;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,sBAAsB,GAChC,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,6BAA6B,KAAK,CAAC,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG,eAAe,GAAG,IAAI,CAAC,CAAC;AAGlI,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,sBAAsB,QAE7E;AAED,wBAAsB,sCAAsC,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,6BAA6B,4BAS3H"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-static-publish",
3
3
  "type": "module",
4
- "version": "8.0.0-beta.10",
4
+ "version": "8.0.0-beta.12",
5
5
  "description": "Static Publisher for Fastly Compute JavaScript",
6
6
  "main": "build/index.js",
7
7
  "exports": {