Giter Site home page Giter Site logo

deployment-azure's People

Contributors

igorbarinov avatar phahulin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deployment-azure's Issues

Rights and folders

By default azure downloads and runs installation script in /var/lib/waagent/custom-script/download/0/ under root.
By default root doesn't have a password, i.e. you can run sudo any-command without password.

  1. Should we move all necessary files to /home/$ADMIN_USERNAME and change files ownership to $ADMIN_USERNAME?
  2. Should we make a password for sudo and ask it in cloud UI?
  3. Should we run docker as non-root that is still equivalent to root?

Patent rights

Hey guys,

It seems that your idea of Proof of authority conflicts with my pending patent application on Royal Network.

We both concluded that small networks would perform better than peer to peer. I saw that this idea hadn't been officialized, standardized or anyhow formalized, and so I filed for it, among other senses of my Confidence Coin blockchain.

While I choose to implement the selection of the peers by their mining power, in Royal Network only those who mined a block can join the network, I did offer several alternatives to the selection process in my application.

As I said it is just in a pending stage and it's not a patent yet, but it will be.

So FYI guys.

Best,
Ilya Gazman
confidence-coin.com

Add Ethereum Network Intelligence API

In installer of Parity (curl https://get.parity.io -Lk) there is a block about installing netstats


		[ ! -d "www" ] && git clone https://github.com/cubedro/eth-net-intelligence-api netstats
		oldpwd= $(pwd)
		cd netstats
		sudo npm install
		sudo npm install pm2 -g

		cat > app.json << EOL

Let's install the main node on the bootnode for the testnet and connect from each mining node. A secret will be one more manual field when a miner runs the template.

(Fix) Rename repository

Problem:
Repository has ambiguous name test and templates

  • it contains not only test branches
  • templates, it's more like scripts

Solution:

  • rename repository to deployment-azure
    • deployment means this repo is used to deploy stuff
    • azure means this repo is used to deploy to Azure
  • create an empty repository with test-template with README with a link to a new repository
  • update wiki and instructions

Azure Standard_A1 server

In your config Standard A1 servers are listed. Do you use them when deploying a nodes?

image
1 core with 2.2Ghz at the nodes

The load increases with the number of blocks, then the parity was updated and the generation of blocks started from scratch. Within a few days the load on the processor again increased and the CPU did not suffice to generate new blocks.

As a result, the network goes into desynchronous and the nodes "fall off"

(Feature) Make SSH credentials optional for Validator's node

If no SSH credentials provided, then a validator's node started without ssh access to it.

Rationale:
for some validators, it's hard to keep the security of their ssh keys, especially on windows platform. For these validators having an option to run validator's node without ssh access will be a preferable option.

Peers discovering

Something wrong with testnet http://104.46.34.192:3000/
Any suggestions?

sudo docker logs oracles-poa:

Loading config file from node.toml
2017-07-25 19:29:07 UTC main INFO parity::run  Starting Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.18.0
2017-07-25 19:29:07 UTC main INFO parity::run  State DB configuration: archive +Fat +Trace
2017-07-25 19:29:07 UTC main INFO parity::run  Operating mode: active
2017-07-25 19:29:07 UTC main INFO ethcore::service  Configured for SoundchainPoA using AuthorityRound engine
2017-07-25 19:29:07 UTC hyper-client INFO miner  Updated conversion rate to Ξ1 = US$198.72 (599072100 wei/gas)
2017-07-25 19:29:08 UTC main TRACE engine  Setting up contract caller.
2017-07-25 19:29:08 UTC main WARN parity::signer  *** INSECURE *** Running Trusted Signer with no origin validation.
2017-07-25 19:29:08 UTC main INFO parity::signer  If you do not intend this, exit now.
2017-07-25 19:29:09 UTC IO Worker #1 INFO network  Public node URL: enode://174faaad8f3eda7bd44638fc94e24c11055bc7ac60df3d711073c3fbe5671542983e08c9003460ff23c497a2fb7ca21ed9b0564021681660a46e5ef5099ce204@104.46.34.192:30300
2017-07-25 19:29:10 UTC IO Worker #3 DEBUG engine  Set of validators obtained: [f982f6ac73a26e243b7d26e0388b104817f75933, d5623777f13f9d16063b0dff850b026cb5da28fb]
2017-07-25 19:29:10 UTC IO Worker #3 TRACE engine  generate_seal: Issuing a block for step 300202190.
2017-07-25 19:29:15 UTC IO Worker #2 DEBUG engine  Set of validators obtained: [f982f6ac73a26e243b7d26e0388b104817f75933, d5623777f13f9d16063b0dff850b026cb5da28fb]
2017-07-25 19:29:15 UTC IO Worker #2 TRACE engine  generate_seal: Not a proposer for step 300202191.
2017-07-25 19:29:15 UTC Verifier #0 INFO import  Imported #4903 9867…56c5 (0 txs, 0.00 Mgas, 0.53 ms, 0.55 KiB) + another 1 block(s) containing 0 tx(s)
2017-07-25 19:29:15 UTC Verifier #0 DEBUG engine  Set of validators obtained: [f982f6ac73a26e243b7d26e0388b104817f75933, d5623777f13f9d16063b0dff850b026cb5da28fb]
2017-07-25 19:29:15 UTC Verifier #0 INFO reorg  Reorg to #4904 6749…7eac (3be8…29c9 #4902 417a…9d24 9867…56c5)
2017-07-25 19:29:15 UTC Verifier #0 DEBUG engine  Set of validators obtained: [f982f6ac73a26e243b7d26e0388b104817f75933, d5623777f13f9d16063b0dff850b026cb5da28fb]
2017-07-25 19:29:15 UTC Verifier #0 TRACE engine  generate_seal: Not a proposer for step 300202191.
2017-07-25 19:29:20 UTC IO Worker #2 TRACE engine  generate_seal: Issuing a block for step 300202192.
2017-07-25 19:29:20 UTC IO Worker #2 INFO import  Imported #4905 8ede…a3eb (0 txs, 0.00 Mgas, 1.73 ms, 1.10 KiB) + another 1 block(s) containing 0 tx(s)
2017-07-25 19:29:25 UTC IO Worker #1 DEBUG engine  Set of validators obtained: [f982f6ac73a26e243b7d26e0388b104817f75933, d5623777f13f9d16063b0dff850b026cb5da28fb]
2017-07-25 19:29:25 UTC IO Worker #1 TRACE engine  generate_seal: Not a proposer for step 300202193.

pm2 logs:

[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/musereum-testnet/.pm2/pm2.log last 15 lines:
PM2        | 2017-07-25 12:24:02: Process dump file    : /home/musereum-testnet/.pm2/dump.pm2
PM2        | 2017-07-25 12:24:02: Concurrent actions   : 2
PM2        | 2017-07-25 12:24:02: SIGTERM timeout      : 1600
PM2        | 2017-07-25 12:24:02: ===============================================================================
PM2        | 2017-07-25 12:24:02: Starting execution sequence in -fork mode- for app name:netstats-daemon id:0
PM2        | 2017-07-25 12:24:02: App name:netstats-daemon id:0 online
PM2        | 2017-07-25 12:24:13: App [netstats-daemon] with id [0] and pid [15620], exited with code [1] via signal [SIGINT]
PM2        | 2017-07-25 12:24:13: Starting execution sequence in -fork mode- for app name:netstats-daemon id:0
PM2        | 2017-07-25 12:24:13: App name:netstats-daemon id:0 online
PM2        | 2017-07-25 16:50:48: App [netstats-daemon] with id [0] and pid [15746], exited with code [1] via signal [SIGINT]
PM2        | 2017-07-25 16:50:48: Starting execution sequence in -fork mode- for app name:netstats-daemon id:0

PM2        | 2017-07-25 16:50:48: App name:netstats-daemon id:0 online
PM2        | 2017-07-25 19:28:55: App [netstats-daemon] with id [0] and pid [41759], exited with code [1] via signal [SIGINT]
PM2        | 2017-07-25 19:28:55: Starting execution sequence in -fork mode- for app name:netstats-daemon id:0
PM2        | 2017-07-25 19:28:55: App name:netstats-daemon id:0 online

/home/musereum-testnet/logs/dashboard.err last 15 lines:
0|netstats | 2017-07-25 19:29:15 +00:00: [eth] ==> Got same block: 4903

/home/soundchain-testnet/logs/dashboard.out last 15 lines:
0|netstats | 2017-07-25 19:31:25.233 [API] [HIS] Got history from: alexeyElizarov
0|netstats | 2017-07-25 19:31:25.805 [API] [BLK] Block: 4930 from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:26.056 [API] [BLK] Block: 4930 from: alexeyElizarov
0|netstats | 2017-07-25 19:31:26.714 [API] [HIS] Got history from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:28.232 [API] [HIS] Got history from: alexeyElizarov
0|netstats | 2017-07-25 19:31:29.717 [API] [HIS] Got history from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:30.057 [API] [BLK] Block: 4931 from: alexeyElizarov
0|netstats | 2017-07-25 19:31:30.290 [API] [BLK] Block: 4931 from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:31.232 [API] [HIS] Got history from: alexeyElizarov
0|netstats | 2017-07-25 19:31:32.718 [API] [HIS] Got history from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:34.233 [API] [HIS] Got history from: alexeyElizarov
0|netstats | 2017-07-25 19:31:35.719 [API] [HIS] Got history from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:35.794 [API] [BLK] Block: 4932 from: soundchainPoATestnet
0|netstats | 2017-07-25 19:31:36.063 [API] [BLK] Block: 4932 from: alexeyElizarov
0|netstats | 2017-07-25 19:31:37.233 [API] [HIS] Got history from: alexeyElizarov

Zombie transactions produced by Truffle

Parity version

[ubuntu@light oracles]$ parity -v
Parity
  version Parity/v1.7.0-beta-5f2cabd6e-20170727/x86_64-linux-gnu/rustc1.19.0

a command line to run parity

parity --config node.toml --chain spec.json

node.totml

[ubuntu@light oracles]$ cat node.toml 
[parity]
chain = "spec.json"
base_path = "parity"
[account]
unlock = ["0x00e7ae17eccc615bbe008633d39f8108bd06e10e"]
password = ["/home/ubuntu/c/oracles/pass.file"]
keys_iterations = 10240
[network]
bootnodes=["enode://886bc3f5f6f6258a89febdf31c71514e27b3647151e96e16bd4bdf6328884b3e8d41bcfb64095496e3701142c4b1f0e6047781d353674b61a45b023845ea742a@40.117.197.50:30300"]
port = 30300
discovery=true
allow_ips = "all"
[rpc]
cors = "all"
interface = "all"
hosts = ["all"]
port = 8545
apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]

after downloading spec.json and node.toml I created an account
sent 0.5 from faucet to this account
added account section to toml with a link to password
started parity without ui

[ubuntu@light tst]$ truffle init
Downloading project...
Project initialized.

  Documentation: http://truffleframework.com/docs

Commands:

  Compile: truffle compile
  Migrate: truffle migrate
  Test:    truffle test

[ubuntu@light tst]$ truffle migrate
Compiling ./contracts/ConvertLib.sol...
Compiling ./contracts/MetaCoin.sol...
Compiling ./contracts/Migrations.sol...
Writing artifacts to ./build/contracts

Using network 'development'.

Running migration: 1_initial_migration.js
  Deploying Migrations...
  ... 0x2bea9e0999d807af27976dd65c3a49e1e7e1d009dd0ee331911e7a50a660617a

created migration generates zombie txs

(Feature) Remove repo hardcoded owner from scripts

(BUG) Cannot deploy netstat

Template validation error

The template deployment 'Microsoft.Template' is not valid according to the validation procedure. 
The tracking id is 'c3be9485-654e-4f6c-a006-a369173540de'. See inner errors for details. 
Please see https://aka.ms/arm-deploy for usage details. (Code: InvalidTemplateDeployment)

Payout script doesn't work

Doesn't work for Henry
mining
http://testnet.oracles.org:4000/account/0xc1a5b2e4b842b139f1f57601e0d38b764feb65b0
payout
0x290b4B2c0b60c37f829FD402529A997DBf4B027a

for Jeff:
payout
0x58c47f56905ad6c0ec519f57867be1117dbb3b9e

But works for Roman
payout
0x49c250F3f9D4e1fa2686AaF88427c83C8ef4297b

They used the same template but on a different time. One day for the cron job passed several times for both Henry and Jeff

Please

  • review recent changes, what can cause that bug?
  • provide a command for debugging on their host

Add swap to docker host

# add swap
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
sudo sh -c "printf '/swapfile   none    swap    sw    0   0\n' >> /etc/fstab"
sudo sh -c "printf 'vm.swappiness=10\n' >> /etc/sysctl.conf"
sudo sysctl vm.vfs_cache_pressure=50
sudo sh -c "printf 'vm.vfs_cache_pressure = 50\n' >> /etc/sysctl.conf"

AWS

Hmm can this run on AWS?

Testnet Codename Sokol

New settings:

  • 25 validators + MoC (Master of Ceremony)
  • bootnode is a separate server (connected to ethstats)
  • stats server and explorer is a separate server (connected to ethstats)
  • MoC node (connected to the ethstats)

Features:

  • Parity 1.8
  • more resources on bootnode host
  • clear name of hosts for (stats, bootnode, MoC node)
  • no tracing
  • logrotate 12hr
  • no logentries (our account will be closed soon and I think about another solutions)
  • more complex netstats password

Let's use Sokol as a branch name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.