@dazn/chaos-squirrel-attack-disk-space
TypeScript icon, indicating that this package has built-in type declarations

0.10.1 • Public • Published

@dazn/chaos-squirrel-attack-disk-space

Consume lots of disk space. Spawns a dd process, so this is unlikely to work on non-unix systems.

Note that AWS Lambda functions have 512 MB disk space available.

Usage

import DiskSpaceAttack from '@dazn/chaos-squirrel-attack-disk-space';
const createDiskSpaceAttack = DiskSpaceAttack.configure({
  // 2gb
  size: 2000000000,
});
const diskSpaceAttack = createDiskSpaceAttack();

// Start and stop methods are async for this attack.
// You should await the results to ensure the file is fully created + removed
await diskSpaceAttack.start();
// a 2gb file will be created
await diskSpaceAttack.stop(); // deletes the file

Readme

Keywords

none

Package Sidebar

Install

npm i @dazn/chaos-squirrel-attack-disk-space

Weekly Downloads

11

Version

0.10.1

License

MIT

Unpacked Size

7.71 kB

Total Files

6

Last publish

Collaborators

  • gideonparanoid
  • davidrv87
  • gabriela_nowicka
  • dazn.builder.frontend
  • automation-drone
  • m.bazalik
  • dazn.oss.lambda.powertools