Coder Social home page Coder Social logo

Comments (33)

mooleshacat avatar mooleshacat commented on August 17, 2024 1

If you use PM2 to run your pool this isn't much of a problem as the restart happens immediately (unless of course the new configuration contains an error)

npm install -g pm2@latest
pm2 install pm2-logrotate
pm2 startup (it may ask you to c/p a command)
pm2 start --name pool node -- init.js
pm2 save

pm2 restart pool - restart pool
pm2 logs pool - watch pool logs
pm2 start pool - start pool
pm2 stop pool - stop pool
pm2 del pool - delete pool

A good miner software I imagine will save the last share it submitted if it failed because of the connection and try to re-submit the share. I also think good software would try to re-submit any share that failed to submit for any reason. I am not sure if the underlying software and stratum protocol would support this though.

The only time I ever had issues with miners being disconnected is when I manually stop it and start it with time in between.

Usually when I use pm2 restart pool it does it so fast that there is 0 effect on the miners (no dropped shares due to jobid, lost connections, etc)

One thing I would add to this idea, is the ability to test the configuration before you deploy it - a command to check all configs are good (main, and individual coin configs) as well as fail-safe methods so if one coin's config is screwed it only affects that one single coin and the rest can still function.

All that being said though, dynamic reloading of configuration as well as config testing and fail-safe would be amazing.

from node-open-mining-portal.

zone117x avatar zone117x commented on August 17, 2024

This would be a great feature. It can be implemented once we get the frontend developed, and the admin page of the frontend developed :)

from node-open-mining-portal.

mculp avatar mculp commented on August 17, 2024

This is huge! I have to disconnect my entire network to add a coin right now!

from node-open-mining-portal.

iangcarroll avatar iangcarroll commented on August 17, 2024

+1

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

forever restart init.js disconnect all ppl ? Or its enough fast for do the job ?

from node-open-mining-portal.

mculp avatar mculp commented on August 17, 2024

yes it disconnects all workers
On Apr 12, 2014 10:59 AM, "bayo31" [email protected] wrote:

forever restart init.js disconnect all ppl ? Or its enough fast for do the
job ?

โ€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-40284174
.

from node-open-mining-portal.

LiveChains avatar LiveChains commented on August 17, 2024

We tryed adding pools on the fly by adding there configs but with the coins off started the portal and from there it throws an errer about the coins RPC Responce, but did seem to load up and allow pople to mine there coins, to actually add the coin for starting we jsut started the new coin (configs already loaded rememer) and waited for it to pool.

Been trying out lots of crazy ideas with this since a customer asked for it.

Devs need a pat on the back such a breeeeze to work with

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

I have almost finished this feature.
I also was pointed to https://www.bountysource.com/issues/1588495-adding-pool-on-the-fly so if anyone would like to contribute feel free to do so, if not, after i have polished the code i will submit PR.

For now, i have this working:

  • Add new file pool_configs/new_pool_name.json
  • Send node scripts/cli.js reloadpool new_pool_name
  • New stratum instance is spawned, supporting clustering if enabled.
  • New workers are auth'ed and can start mining

What needs to be polished:

  • Profit switching to use new coin
  • Payouts to new coin.

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

UPDATE

For now, i have this working:

  • Add new file pool_configs/new_pool_name.json
  • Send node scripts/cli.js reloadpool new_pool_name
  • New stratum instance is spawned, supporting clustering if enabled.
  • New workers are auth'ed and can start mining
  • Profit switching to use new coin (new)

What needs to be polished:

  • Payouts to new coin.

Also a bounty was met, that was quick, Thanks mineoncloud
All other backers still welcome to donate ๐Ÿ‘

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

UPDATE

For now, i have this working:

  • Add new file pool_configs/new_pool_name.json
  • Send node scripts/cli.js reloadpool new_pool_name
  • New stratum instance is spawned, supporting clustering if enabled.
  • New workers are auth'ed and can start mining
  • Profit switching to use new coin
  • Payouts to new coin. (new)

What needs to be added:

  • Update frontend to show new coin stats

All other backers still welcome to donate ๐Ÿ‘

from node-open-mining-portal.

icecube45 avatar icecube45 commented on August 17, 2024

Looking forward to it!
-icecube45 ($50 Backer)

from node-open-mining-portal.

iangcarroll avatar iangcarroll commented on August 17, 2024

Nice.โ€”
Sent from Mailbox

On Thu, May 15, 2014 at 1:01 AM, icecube45 [email protected]
wrote:

Looking forward to it!

-icecube45 ($50 Backer)

Reply to this email directly or view it on GitHub:
#5 (comment)

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

Ping me when all done and when we can start test !!!

Mineoncloud.

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

Should be ready to test now. Will submit PR.
I need to rebase my branch before I can submit PR... Won't take that long...

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

@miningpoolhub @mineoncloud @icecube45 PR #211 is up.
Please test, it should work fine, but do it with test pools just in case...

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

Has anyone tested #211 already?

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

I go test today ! But one thing is to add this function in admin tabs too .

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

Sure, as soon as this is confirmed to work, I can try to call cli from admin section.
On May 19, 2014, at 1:22 PM, mineoncloud [email protected] wrote:

I go test today ! But one thing is to add this function in admin tabs too .

โ€”
Reply to this email directly or view it on GitHub.

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

Just add first pool with this functions report =
block count = ok
payout for fees = ok
stats = ok for now
payout for worker waiting confirm but all look good.
Also any error in log for now.

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

All work well on my side right now !! Add , payout , fees ( I just dont test multipool switch because dont use it atm ) !! I have also try disable pool ( turn enabled to false + reload it ) and it work.

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

So? Does this work for the others too?

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

Can this be merged already?
It will be easier for me so I can rebase to master with this merged.
Will also help with #214

from node-open-mining-portal.

scorpio18 avatar scorpio18 commented on August 17, 2024

This function is not working for me :(

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

What is wrong ?
I assume you have pulled my PR to test this, since this has not been merged yet... It won't work in a normal installation...

On May 27, 2014, at 6:02 PM, scorpio18 [email protected] wrote:

This function is not working for me :(

โ€”
Reply to this email directly or view it on GitHub.

from node-open-mining-portal.

scorpio18 avatar scorpio18 commented on August 17, 2024

so that why is not working , i have seen on my nomp folder and i tried on my nomp pool :) Sry

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

Ok that explains it, don't worry!

I'm waiting for repo owner to merge this, or other users to report any errors, I thinks it works fine.
As soon as this is confirmed to work and merged I will start with the other issue for removing and restarting a pool after modifying it.

On May 27, 2014, at 6:32 PM, scorpio18 [email protected] wrote:

so that why is not working , i have seen on my nomp folder and i tried on my nomp pool :) Sry

โ€”
Reply to this email directly or view it on GitHub.

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

@miningpoolhub @zone117x @mineoncloud So, can we merge #211 or let me know what's needed so I can continue working on CLI?

from node-open-mining-portal.

mineoncloud avatar mineoncloud commented on August 17, 2024

For me its good ! Why this is not yet merged ??

from node-open-mining-portal.

mrzeta avatar mrzeta commented on August 17, 2024

make it - -

from node-open-mining-portal.

nicoschtein avatar nicoschtein commented on August 17, 2024

@mrzeta I did not understand what you meant..
@mineoncloud I think that since repo owner did not merge this #211 at the time, it has now outdated code in it....... for some reason another PR got merged before this one.
Please @zone117x let me know if and what is needed for the rebase. Thanks!

from node-open-mining-portal.

sigwo avatar sigwo commented on August 17, 2024

When starting pool on the fly, the public key was not added to the drop down list to convert public key to importable key for the added pool.

from node-open-mining-portal.

splicer9 avatar splicer9 commented on August 17, 2024

I concur with sigwo. Coin is not added to key page.
All other functions seem to work fine for me.

from node-open-mining-portal.

gr33k avatar gr33k commented on August 17, 2024

Hey @zone117x you alive still? what's the status of this?
Thank you @nicoschtein and others for contributions and @zone117x for this awesome mining pool...however I'm disappointed that development has stopped :(

from node-open-mining-portal.

Related Issues (20)

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.