Bitcoin Forum
November 03, 2024, 12:20:26 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3] 4 5 6 7 8 »  All
  Print  
Author Topic: CKPool Stats - iPhone App  (Read 22130 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 11, 2016, 06:48:00 AM
 #41

That would best case.   15 second poll of kano.is api + apple push latency.   Every so often it will line up.   Every other time it takes folks 30s to click the screen and two more minutes to log in and check the site so it feels instant.   You still have the edge on watching the console.

kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
February 11, 2016, 09:47:10 AM
 #42

That would best case.   15 second poll of kano.is api + apple push latency.   Every so often it will line up.   Every other time it takes folks 30s to click the screen and two more minutes to log in and check the site so it feels instant.   You still have the edge on watching the console.
15s ... I can see that getting it banned shortly ... I've implemented limits in CKDB for failure events and activity events.
That was around where I was gonna limit it per hour.
There's no useful information gained by polling the site more than about once a minute.

This will also cause even more problems if you are logging in to a single account with everyone running the app ... since that will hit the account ... lots ...

If someone needs to poll the site 5760 times a day they need to find something better to do with their time ...

Even with identifying idle workers, you can't do that more than once every 30s

A worker is expected, to average, 3 shares a day of 13.33s or more.

Shares are avg 18SPM, so 1 share is avg 1.333s
a 1000% CDF is:
Code:
0.99995460007024  1000.000%  1 in 22026.5
i.e. expect to average one in 22026.5 shares to be 10x1.333s = 13.33s
and 22026.5 shares is expected to average 8.16 hours at average 13.33s per share

FYI there's already more than 400k hits a day ...

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 11, 2016, 02:01:11 PM
Last edit: February 11, 2016, 04:09:24 PM by vh
 #43

15s ... I can see that getting it banned shortly ... I've implemented limits in CKDB for failure events and activity events.
That was around where I was gonna limit it per hour.
There's no useful information gained by polling the site more than about once a minute.

This will also cause even more problems if you are logging in to a single account with everyone running the app ... since that will hit the account ... lots ...

If someone needs to poll the site 5760 times a day they need to find something better to do with their time ...

Even with identifying idle workers, you can't do that more than once every 30s

A worker is expected, to average, 3 shares a day of 13.33s or more.

Shares are avg 18SPM, so 1 share is avg 1.333s
a 1000% CDF is:
Code:
0.99995460007024  1000.000%  1 in 22026.5
i.e. expect to average one in 22026.5 shares to be 10x1.333s = 13.33s
and 22026.5 shares is expected to average 8.16 hours at average 13.33s per share

FYI there's already more than 400k hits a day ...

Felt like I was about to bump that limit soon.   I will slow it down.    

I did notice that 30 second worker change frequency and don't pull more frequently than 30s per worker.

The data is normalized through a summary node on my end to make data from kano.is look like data from solo.ckpool.

This also allows for notifications, and controls hits to your system at a known rate.   And if the downstream changes (new pool, new data, changed data structure), I don't need to wait for apple review to make adjustments.

aggregation node thread:

1 pool thread - Every 15 second, watches for block found changes.  collect pool related information
3 thread poll user status - pulls data per user if user's stamp is older than 30 seconds.  which is the minimum useful limit you noted.
(misc thread to watch status file, blockchain payout, etc)

The pool thread triggers the pool block push notification
The user thread triggers user push notifications

Every running app hits was suppose to hit the aggregation node a bit harder as it acts as the relay, and broadcast one-to-many for the 15s poll.

The user notification part has been bothering me too.  I would like not to scrap earlier notification but if it causes stress or ban, that's no good.

The target hits to kano.is:

240x times per hour for pool block change thread.
120x times per hour per app install for user thread.

Here's a few strays that are causing the numbers to be higher, and what i'm doing to address those.

If someone adds in 20 worker addresses and don't use an account.    I did not expect a lot of those, but it is there.
   - solo.ckpool does a worker list in the user view.   i can adjust this the same to save lots of hits should the parent user view eventually show workers.

User Typos.  
   - looking to apply retry suppression.   there's no stamp to baseline off.   need to better distinguish it from no api data, zero api data during restarts.

Also playing with an out of band block change notification.

The 15s/30s can be tuned as required immediately.








vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 11, 2016, 02:39:23 PM
 #44

Added some metrics.   The app (overall) is triggering 950 api calls every 5 minutes.

I will bump it to 15s/300s shortly (incrementally by EOD), and drop it down to 45s when the application is awake.

That should drop it down significantly and still provide the functions.

kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
February 11, 2016, 09:15:47 PM
 #45

I'll let you know when I activate the change on the live pool (today or tomorrow)
We can then see if anything needs adjusting in ckdb.
Also note I have whitelists so e.g. if you are polling the site a bit more from your data source I can set that as ignored.
But of course if everyone is doing that with the app, there can't (and of course wont) be a whitelist for 'everyone' Smiley

Edit: also, you may have noticed, but by design the hash rate stats only change once per minute.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 11, 2016, 09:40:09 PM
 #46

I'll let you know when I activate the change on the live pool (today or tomorrow)
We can then see if anything needs adjusting in ckdb.
Also note I have whitelists so e.g. if you are polling the site a bit more from your data source I can set that as ignored.
But of course if everyone is doing that with the app, there can't (and of course wont) be a whitelist for 'everyone' Smiley

I'll pm you that offline, i'll end up over the hourly limit at some point if not already.
    
With the adjustments 15s/300s(45s active), It's dropped from 950 to 140 api calls over a 5 minute period with no impact on user experience.
That will ease up some activity to your server.

I also found the block message i'm hunting for so i may be able to adjust to 60s/300s(45s) shortly with a little tweak that will get near event driven block -> push notification, backup using block num change in polling.
 {"params":["Block 397940 solved by d00d.PK217 @ ckpool!"] ..

kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
February 13, 2016, 05:15:38 AM
 #47

With 1.2, on an iPad mini, when I tap the middle to hide the top right, bottom left stats, it puts a 'blank' box there and obscures part of the time at the top (right) and the marquee at the bottom (left)

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 13, 2016, 05:26:49 AM
Last edit: February 13, 2016, 05:41:25 AM by vh
 #48

With 1.2, on an iPad mini, when I tap the middle to hide the top right, bottom left stats, it puts a 'blank' box there and obscures part of the time at the top (right) and the marquee at the bottom (left)

thanks for the quick update.   sounds like my height adjustment offset is off for the iPad mini.   changing a simple on/off visibility was oddly trickier than it sounds.  will add a quick iPad simulator run and see if i can correct that.  

vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 13, 2016, 05:34:23 AM
 #49

layering issue.   fixed in the code for the next build.   now that i see the ipad version, i'll tag scaling to the misc todo section.

kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
February 13, 2016, 09:05:58 AM
 #50

I keep getting an alert every so often, that I can only guess is a worker related alert (but there's no text anywhere saying what the alert is)
How can I disable this? I only want block alerts (and payout alerts if I must)

I have a bunch of tiny miners that talk to the nodes, I don't care what their hash rate is.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 13, 2016, 02:38:14 PM
 #51

Idle count change alert, it changes the app icon number to match your idle worker count.    Adjusting the badges to send without sound (no dings or buzz).   

vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 13, 2016, 02:44:14 PM
 #52

I keep getting an alert every so often, that I can only guess is a worker related alert (but there's no text anywhere saying what the alert is)
How can I disable this? I only want block alerts (and payout alerts if I must)

I have a bunch of tiny miners that talk to the nodes, I don't care what their hash rate is.

Those extra buzzing/sounds without text should be gone now.       

vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 13, 2016, 03:00:43 PM
 #53

Bumping up the configuration toggle switches from the todo section to v1.3.

gt_addict
Hero Member
*****
Offline Offline

Activity: 2534
Merit: 623


View Profile
February 14, 2016, 12:29:34 PM
 #54

Nice little update on the app. I've got a red notification bubble on the app icon but clicked everything I can on the three pages.

**SUPPORT SIDEHACK** Miner Development Donations to:  1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr

Donations/Tips to:-   1GTADDicTXD1uachKKgW24DZDxDGhSMdRa

Join Bitconnect: https://bitconnect.co/?ref=gtaddict
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 14, 2016, 04:16:45 PM
 #55

Nice little update on the app. I've got a red notification bubble on the app icon but clicked everything I can on the three pages.

The number represents the count of idle workers seen.   It will clear out when idle workers clear out.   Added to FAQ section.
If it doesn't match, possible bug.

gt_addict
Hero Member
*****
Offline Offline

Activity: 2534
Merit: 623


View Profile
February 14, 2016, 04:17:39 PM
 #56

That's great cheers.

**SUPPORT SIDEHACK** Miner Development Donations to:  1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr

Donations/Tips to:-   1GTADDicTXD1uachKKgW24DZDxDGhSMdRa

Join Bitconnect: https://bitconnect.co/?ref=gtaddict
gt_addict
Hero Member
*****
Offline Offline

Activity: 2534
Merit: 623


View Profile
February 15, 2016, 10:08:29 PM
 #57

Just letting you know that im not picking up my miner on the app. Pool stats seem ok but my miner isn't listed.

Thanks.

**SUPPORT SIDEHACK** Miner Development Donations to:  1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr

Donations/Tips to:-   1GTADDicTXD1uachKKgW24DZDxDGhSMdRa

Join Bitconnect: https://bitconnect.co/?ref=gtaddict
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
February 15, 2016, 10:42:42 PM
 #58

Oh questions I forgot to ask before:
What are the colours (yellow, white, green) on the workers screen and what does it mean tapping on the different workers?
Seems to affect sorting but I couldn't guess what it was doing from what was happening on the screen.
I guess the colours may have to do with monitoring but can't really tell.

Also, I set the main screen (which is all I ever look at) to Top Left: Shares, Top Right: Errors, Bottom Left: Users, Bottom Right: Workers.
Seems it forgets that and comes back with varying layouts sometimes when I start it.
Tapping the middle to hide/show the top right and bottom left also shows random settings in them.

(also I can't for the life of me work out how to find the readme details on the app store at the moment Tongue)

Edit: oh also, "Errors" should say "Invalid"

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 16, 2016, 05:15:09 AM
 #59

Just letting you know that im not picking up my miner on the app. Pool stats seem ok but my miner isn't listed.

Thanks.

Should be okay now, better fix in the works.

vh (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 16, 2016, 05:31:33 AM
 #60

What are the colours (yellow, white, green) on the workers screen and what does it mean tapping on the different workers?
text yellow = sort applied ascending
text green = sort applied descending

edit: applied to the item colored.   sorted by worker name or by hashrate (when the text is tapped).

Also, I set the main screen (which is all I ever look at) to Top Left: Shares, Top Right: Errors, Bottom Left: Users, Bottom Right: Workers.
Seems it forgets that and comes back with varying layouts sometimes when I start it.
Tapping the middle to hide/show the top right and bottom left also shows random settings in them.
The stats are released from the hidden bubbles so the can be cycle through on the remaining two, that leaves it to pick up the next two stats on appear, not entirely random.
Once I move this into the configuration section instead of tapping, it will not be as noticeable.
That aside, looks like I skipped the save step on app close.  
Rearranged defaults until I can get the saving part squared away.


(also I can't for the life of me work out how to find the readme details on the app store at the moment)
the what? it probably doesn't exist.


Edit: oh also, "Errors" should say "Invalid"
Label adjusted.

Pages: « 1 2 [3] 4 5 6 7 8 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!