Skip to content

Commit a7c5cce

Browse files
Merge pull request #136 from Acurast/develop
Develop
2 parents 20a19b5 + 43ee5cb commit a7c5cce

4 files changed

Lines changed: 26 additions & 26 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ ACURAST_MNEMONIC=abandon abandon about ...
169169
- Third element: The deployment ID
170170
- Example: `["Acurast", "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL", 123456]`
171171
- `benchmarkFilters` (optional): Minimum benchmark requirements used to filter eligible processors.
172-
- `minMemoryBytes`: Minimum total RAM in bytes.
172+
- `minRamTotalBytes`: Minimum total RAM in bytes.
173173
- `minCpuSingleCoreScore`: Minimum single-core CPU score.
174-
- `minStorageBytes`: Minimum total storage in bytes.
175-
- `minStorageIoScore`: Minimum storage I/O score.
174+
- `minCpuMultiCoreScore`: Minimum multi-core CPU score.
175+
- `minStorageAvailBytes`: Minimum available storage in bytes.
176176
- `poolIds` (advanced): Override compute-pallet benchmark pool IDs.
177177

178178
### Benchmark Filters
@@ -187,10 +187,10 @@ Config example:
187187
"projects": {
188188
"example": {
189189
"benchmarkFilters": {
190-
"minMemoryBytes": 4000000000,
190+
"minRamTotalBytes": 4000000000,
191191
"minCpuSingleCoreScore": 1000,
192-
"minStorageBytes": 64000000000,
193-
"minStorageIoScore": 500
192+
"minCpuMultiCoreScore": 3000,
193+
"minStorageAvailBytes": 64000000000
194194
}
195195
}
196196
}
@@ -200,7 +200,7 @@ Config example:
200200
Deploy flag examples (can be combined):
201201

202202
```bash
203-
acurast deploy --min-memory 4GB --min-cpu-score 1000 --min-storage 64GB --min-io-score 500
203+
acurast deploy --min-memory 4GB --min-cpu-score 1000 --min-storage 64GB --min-cpu-multi-score 3000
204204
```
205205

206206
Notes:

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@acurast/cli",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "A cli to interact with the Acurast Cloud.",
55
"main": "dist/index.js",
66
"bin": {
@@ -33,9 +33,8 @@
3333
"dependencies": {
3434
"@acurast/dapp": "^1.0.1",
3535
"@acurast/devtools": "^1.0.1",
36-
"@acurast/sdk": "^1.2.1",
36+
"@acurast/sdk": "^1.2.2",
3737
"@inquirer/prompts": "^5.0.5",
38-
"adm-zip": "^0.5.16",
3938
"@polkadot/api": "^16.1.2",
4039
"@polkadot/api-augment": "^16.1.2",
4140
"@polkadot/keyring": "^14.0.0",
@@ -44,6 +43,7 @@
4443
"@polkadot/util": "^14.0.0",
4544
"@polkadot/util-crypto": "^14.0.0",
4645
"@polkadot/wasm-crypto": "^7.3.2",
46+
"adm-zip": "^0.5.16",
4747
"ansis": "^4.1.0",
4848
"bignumber.js": "^9.3.0",
4949
"bip39": "^3.1.0",

src/commands/deploy.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,17 @@ export const addCommandDeploy = (program: Command) => {
270270
.addOption(
271271
new Option(
272272
'--min-storage <size>',
273-
'Minimum total storage capacity (e.g. 64GB)'
273+
'Minimum available storage capacity (e.g. 64GB)'
274274
)
275275
)
276276
.addOption(
277277
new Option(
278-
'--min-io-score <n>',
279-
'Minimum storage I/O benchmark score'
278+
'--min-cpu-multi-score <n>',
279+
'Minimum CPU multi-core benchmark score'
280280
).argParser((v) => {
281281
const n = Number.parseInt(v, 10)
282282
if (Number.isNaN(n) || n < 0) {
283-
throw new Error(`Invalid --min-io-score: ${v}`)
283+
throw new Error(`Invalid --min-cpu-multi-score: ${v}`)
284284
}
285285
return n
286286
})
@@ -298,7 +298,7 @@ export const addCommandDeploy = (program: Command) => {
298298
minMemory?: string
299299
minCpuScore?: number
300300
minStorage?: string
301-
minIoScore?: number
301+
minCpuMultiScore?: number
302302
}
303303
) => {
304304
const log = consoleOutput(options.output)
@@ -346,22 +346,22 @@ export const addCommandDeploy = (program: Command) => {
346346
try {
347347
const bf = { ...config.benchmarkFilters }
348348
if (options.minMemory !== undefined) {
349-
bf.minMemoryBytes = Number(parseByteSize(options.minMemory))
349+
bf.minRamTotalBytes = Number(parseByteSize(options.minMemory))
350350
}
351351
if (options.minCpuScore !== undefined) {
352352
bf.minCpuSingleCoreScore = options.minCpuScore
353353
}
354354
if (options.minStorage !== undefined) {
355-
bf.minStorageBytes = Number(parseByteSize(options.minStorage))
355+
bf.minStorageAvailBytes = Number(parseByteSize(options.minStorage))
356356
}
357-
if (options.minIoScore !== undefined) {
358-
bf.minStorageIoScore = options.minIoScore
357+
if (options.minCpuMultiScore !== undefined) {
358+
bf.minCpuMultiCoreScore = options.minCpuMultiScore
359359
}
360360
if (
361361
options.minMemory !== undefined ||
362362
options.minCpuScore !== undefined ||
363363
options.minStorage !== undefined ||
364-
options.minIoScore !== undefined
364+
options.minCpuMultiScore !== undefined
365365
) {
366366
config.benchmarkFilters = bf
367367
}

0 commit comments

Comments
 (0)