Coder Social home page Coder Social logo

aleo-pool-server's Introduction

Just playing with some metrics tools...

Metrics

aleo-pool-server's People

Contributors

harukama avatar satokentanayoro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aleo-pool-server's Issues

I don't think the difficulty adjustment is reasonable

pub async fn next_difficulty(&mut self) -> u64 {
match self.current_difficulty.cmp(&self.next_difficulty) {
cmp::Ordering::Less => {
self.speed_1m.reset().await; // ??????
self.current_difficulty = self.next_difficulty;
}
cmp::Ordering::Greater => {
self.current_difficulty = ((0.9 * self.current_difficulty as f64) as u64).max(1);
}
_ => {}
}
self.current_difficulty
}

Why reset vecdeque?

timed out and something is not normal

  1. run about 50 aleo_provers
    A: server logs appear frequently : WARN aleo_server::connection: Peer 10.20.71.12:59552 timed out
    B: aleo_prover quickly reconnects and gets back to work

  2. run about 300 aleo_provers
    A: INFO^[[0m ^[[2msaleo_server::connection^[[0m^[[2m:^[[0m Peer 10.20.71.25:55132 timed out
    this log appear every 120 seconds on about one hundred aleo_prover clients.
    B: many provers do not receive tasks.
    C:the server has basically no computing power to commit

aleo-pool-server An error occurs when running.

2024-01-26T20:27:53.441343Z INFO aleo_pool_server::validator_peer: Connecting to operator...
2024-01-26T20:27:58.443197Z ERROR aleo_pool_server::validator_peer: Failed to connect to operator: Timed out

I am curious why the operator: Timed out error occurs.

No database host defined

Hi, thank you for creating such a useful repo for us to study aleo.
I am debugging the aleo-prover, but somehow got banned by the online pool sever (pool.hamp.app:4200).

So I am trying to start this pool server by myself, but got the error below:

    Finished release [optimized + debuginfo] target(s) in 1.16s
     Running `target/release/aleo-pool-server --operator '127.0.0.1:3032' --port 8888 --api-port 9999`
thread 'main' panicked at 'No database host defined', src/db.rs:17:64
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I start the operator by myself with the cmd below:

target/release/snarkos --operator aleo1cev9umxxxxxxx......xxxx --trial

BTW. What exact port number should I use for those ports in the aleo-pool-server command line?

Panicked when starting the pool server

Used to start successfully, no idea what I did, it cant be started now.
Please take a look, thanks.

thread 'main' panicked at 'called Result::unwrap()on anErrvalue: IOError { io_error: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" } }', src/accounting.rs:74:49 stack backtrace: 0: rust_begin_unwind at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/ panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src /panicking.rs:142:14 2: core::result::unwrap_failed at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src /result.rs:1785:5 3: core::result::Result<T,E>::unwrap at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src /result.rs:1107:23 4: aleo_pool_server::accounting::PPLNS::load at ./src/accounting.rs:74:9 5: aleo_pool_server::accounting::Accounting::init at ./src/accounting.rs:145:47 6: aleo_pool_server::main::{{closure}} at ./src/main.rs:126:22 7: <core::future::from_generator::GenFuture<T> as core::future::future::Futur e>::poll at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src /future/mod.rs:91:19 8: tokio::runtime::park::CachedParkThread::block_on::{{closure}} at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/park.rs:283:63 9: tokio::runtime::coop::with_budget at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/coop.rs:102:5 10: tokio::runtime::coop::budget at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/coop.rs:68:5 11: tokio::runtime::park::CachedParkThread::block_on at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/park.rs:283:31 12: tokio::runtime::context::BlockingRegionGuard::block_on at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/context.rs:295:13 13: tokio::runtime::scheduler::multi_thread::MultiThread::block_on at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/scheduler/multi_thread/mod.rs:66:9 14: tokio::runtime::runtime::Runtime::block_on at /home/ray/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio- 1.23.0/src/runtime/runtime.rs:284:45 15: aleo_pool_server::main at ./src/main.rs:146:5 16: core::ops::function::FnOnce::call_once at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src /ops/function.rs:248:5 note: Some details are omitted, run withRUST_BACKTRACE=full for a verbose bac ktrace.

how can this server get connection with a operator node?

after i run a operater node with your snarkos with version [f3cab7ee],
my pool server show logs as:

2022-03-29T02:20:45.340199Z  INFO aleo_pool_server::operator_peer: Connecting to operator...
2022-03-29T02:20:45.340339Z  INFO aleo_pool_server::operator_peer: Connected to 10.66.9.35:53557
2022-03-29T02:20:45.340378Z TRACE aleo_pool_server::operator_peer: Sent challenge request
2022-03-29T02:20:45.340576Z  WARN aleo_pool_server::operator_peer: Failed to read the message: Custom { kind: InvalidData, error: "Frame of length 1347703880 is too large." }
2022-03-29T02:20:45.340600Z ERROR aleo_pool_server::operator_peer: Disconnected from operator

how can i get a suitable operator node

error: could not compile `snarkvm-synthesizer`

Ubuntu 18.04.6

cargo build --release

Compiling snarkvm-synthesizer v0.9.9
error: could not compile snarkvm-synthesizer

Caused by:
process didn't exit successfully: rustc --crate-name snarkvm_synthesizer --edition=2021 /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/snarkvm-synthesizer-0.9.9/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=256 -C debuginfo=1 --cfg 'feature="parallel"' --cfg 'feature="rayon"' -C metadata=b8a2bf40fde2e4c0 -C extra-filename=-b8a2bf40fde2e4c0 --out-dir /root/aleo-pool-server/target/release/deps -L dependency=/root/aleo-pool-server/target/release/deps --extern aleo_std=/root/aleo-pool-server/target/release/deps/libaleo_std-9ed44caa6daa97c3.rmeta --extern anyhow=/root/aleo-pool-server/target/release/deps/libanyhow-733ed0cfbb690c96.rmeta --extern blake2=/root/aleo-pool-server/target/release/deps/libblake2-549cdfa2fb1f513c.rmeta --extern colored=/root/aleo-pool-server/target/release/deps/libcolored-4ba5ea35894a8776.rmeta --extern indexmap=/root/aleo-pool-server/target/release/deps/libindexmap-6ca723a1e005ceea.rmeta --extern once_cell=/root/aleo-pool-server/target/release/deps/libonce_cell-ff2f040e678b99e1.rmeta --extern parking_lot=/root/aleo-pool-server/target/release/deps/libparking_lot-350a960e41a56f3d.rmeta --extern paste=/root/aleo-pool-server/target/release/deps/libpaste-5861758b47c42315.so --extern rand=/root/aleo-pool-server/target/release/deps/librand-898472647bdd2617.rmeta --extern rayon=/root/aleo-pool-server/target/release/deps/librayon-d60f04b91ee7a607.rmeta --extern reqwest=/root/aleo-pool-server/target/release/deps/libreqwest-c13e3647117b5484.rmeta --extern serde=/root/aleo-pool-server/target/release/deps/libserde-cdab94ad582227fd.rmeta --extern serde_json=/root/aleo-pool-server/target/release/deps/libserde_json-34aceb5a66c9d965.rmeta --extern snarkvm_algorithms=/root/aleo-pool-server/target/release/deps/libsnarkvm_algorithms-9a06e796bb448457.rmeta --extern circuit=/root/aleo-pool-server/target/release/deps/libsnarkvm_circuit-2131476fb6869152.rmeta --extern console=/root/aleo-pool-server/target/release/deps/libsnarkvm_console-c4b9730b3a0ecda6.rmeta --extern snarkvm_curves=/root/aleo-pool-server/target/release/deps/libsnarkvm_curves-66db65667dc72039.rmeta --extern snarkvm_fields=/root/aleo-pool-server/target/release/deps/libsnarkvm_fields-64d9ef2c37efab82.rmeta --extern snarkvm_utilities=/root/aleo-pool-server/target/release/deps/libsnarkvm_utilities-000d2ee4006a3c1d.rmeta --extern tracing=/root/aleo-pool-server/target/release/deps/libtracing-0466407a46157670.rmeta --cap-lints allow -L native=/root/aleo-pool-server/target/release/build/curl-sys-3e9eb910aa83d272/out/build -L native=/root/aleo-pool-server/target/release/build/libz-sys-f8f1ac8fa1d00507/out/lib -L native=/root/aleo-pool-server/target/release/build/libz-sys-f8f1ac8fa1d00507/out/lib (signal: 9, SIGKILL: kill)
root@iZj6cgd384kfewiathlewgZ:~/aleo-pool-server#

于节点通信报InvalidData

snarkos 使用的HarukaMa最新版(使用官方最新的也是这个错)
aleo-pool-server 使用的最新版

Failed to read the message: Custom { kind: InvalidData, error: LengthDelimitedCodecError }
image

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.