0.0.19 • Published 3 years ago

fldist v0.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Fluence service distributor

Can distribute modules, blueprints and create services.

Running

npm i
npm run run 

Help to get all commands

npm run cli --help

Air scripts examples is in scripts_examples direcotory

Distribute basic services to Fluence network

From console you can call

npm run cli distribute

In browser, open console, and call await distribute();

Changing configuration

Take a look at function distribute at the bottom of index.ts:

export async function distribute() {
	Fluence.setLogLevel('warn');
	const nodes = faasNetHttps;
	const distributor = new Distributor(nodes);
	await distributor.distributeServices(nodes[0], new Map([
		['SQLite 3', [1, 2, 3, 4]],
		['User List', [1, 2, 3, 4]],
		['Message History', [1, 2, 3, 4]],
	])).then(_ => console.log('finished'));
}

It calls distributor.distributeServices, passing service distribution:

  • Create service SQLite 3 on nodes with indexes 1, 2, 3 and 4.
  • Create service User List on nodes with indexes 1, 2, 3 and 4.
  • Create service Message History on nodes with indexes 1, 2, 3 and 4.

You can change distribution as you wish, and add new blueprints at the top of index.ts.

0.0.19

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago