19:57 PM
ruaok
that is exactly what I figured out yesterday.
19:57 PM
let me go read the follow code just to make sure
19:57 PM
iliekcomputers
yeah, that's what i was gonna say
19:57 PM
ZaphodBeeblebrox
and the vlc listening works really well honestly
19:58 PM
iliekcomputers
<3 livegrep
19:58 PM
Raghav has quit
19:58 PM
19:59 PM
ruaok
it looks like you created a separate exchange too.
19:59 PM
"playing_now_exchange": "playing_now",
19:59 PM
"playing_now_queue": "playing_now",
19:59 PM
iliekcomputers
i have no remembrance at all of how the follow thing worked
19:59 PM
ruaok
docker-server-configs/consul/LB
20:00 PM
iliekcomputers
oh
20:00 PM
so
20:00 PM
the playing_now queue is only for listens that people sent in as 'now_playing'
20:00 PM
20:01 PM
20:01 PM
ruaok
yeah, I just remembered that.
20:02 PM
iliekcomputers
k, i'm gonna get food and then look into emails for the stats cron job
20:02 PM
ruaok
k
20:02 PM
iliekcomputers
the observability mailer may be spammy for a while.
20:02 PM
ZaphodBeeblebrox
oh no.
20:02 PM
Raghav joined the channel
20:03 PM
amCap1712: I'm finished testing for now. tell me tomorrow/osme other tiem if yo uhave spesific test cases yo uwant me to test
20:03 PM
ruaok
iliekcomputers: self.create_and_bind_exchange_and_queue(channel, current_app.config['UNIQUE_EXCHANGE'], current_app.config['FOLLOW_LIST_QUEUE'])
20:04 PM
this is the crux of it. makes sense.
20:04 PM
iliekcomputers
yep
20:05 PM
amCap1712
ZaphodBeeblebrox: pausing/resuming, stopping midway, repeat, playlist. thats all. if all of that is tested i don't have anything more in mind
20:05 PM
ruaok
oh, another correction
20:05 PM
1. start shadowing the UNIQUE queue to insert all listens (starting timestamp x)
20:05 PM
amCap1712
iliekcomputers: ruaok: do you think there could be some other edge cases which might require to tested separately?
20:06 PM
ruaok
2. directly import from influx all listens inserted to influx before timestamp x
20:06 PM
ZaphodBeeblebrox
I think i did all these. i guess palylist. but i'm tired and stuff i need ot eat too
20:06 PM
amCap1712
ZaphodBeeblebrox: tommorrow lets test on windows then
20:06 PM
yeah sure. thanks for the help
20:06 PM
ZaphodBeeblebrox
i'll try to move the windows machine . alright!
20:06 PM
ruaok
amCap1712: the answer is yes. but, what are we talking about?
20:06 PM
ZaphodBeeblebrox
hey no problem. this is awesome!!
20:07 PM
amCap1712
ruaok: edge cases to test the plugin for. like one might be to stop the plugin before it is half finished
20:07 PM
ZaphodBeeblebrox
two different things beeing listened too at the same time (diff machines, diff programs, etc)
20:07 PM
amCap1712
and should not be submitted
20:07 PM
ZaphodBeeblebrox
i cna test this tomorrow! windows and mac both play!
20:08 PM
ruaok
amCap1712: if the track played 30 seconds or more, it is considered a play.
20:08 PM
ZaphodBeeblebrox
both should listenz. after all I 'm listening ot both :D
20:08 PM
so. if playing , say 40 seocnds thne double clicknig again on it
20:08 PM
i cna test that
20:08 PM
amCap1712
ruaok: even if it less than half the duration?
20:08 PM
ruaok
30 seconds is just the standard in the industry.
20:09 PM
which seems BS to me, but...
20:09 PM
amCap1712
that just a constant i'll have to modify.
20:10 PM
ruaok
then for now, keep it simple and set the constant to 30.
20:10 PM
amCap1712
but i think it gives the idea of what i am trying to convey by different test cases
20:10 PM
ZaphodBeeblebrox
i have songs that are >30 secs whixh i wish would listenz
20:10 PM
ruaok
yes, but I can't really think of any off the top of my head.
20:10 PM
alastairp is good at these things.
20:11 PM
ZaphodBeeblebrox
(ok so I made up that listening eg "scrobbling" is called "listenz" .. i uges it's dumb)
20:11 PM
amCap1712
i'll post on the discourse for asking others to test.
20:11 PM
ZaphodBeeblebrox
20:12 PM
amCap1712
once we are satisfied with the testing, i can send the patch upstream for merging
20:12 PM
ZaphodBeeblebrox
yes
20:16 PM
ruaok
20:22 PM
iliekcomputers
i tend towards the simple one
20:22 PM
considering it's writing stuff at 20k/s right now?
20:23 PM
a full import is 4-5 hours?
20:23 PM
ruaok
I have no idea if writing time series data in a willy nilly fashion will yield an optimal layout on disk.
20:23 PM
not sure if timescale is smart enough to re lay things out.
20:24 PM
iliekcomputers
hmm, will have to look into that, i guess.
20:24 PM
but
20:25 PM
ruaok
the rate I am getting is about 880k inserts per minute.
20:25 PM
iliekcomputers
listens will always come in willy nilly fashion afterwards anyways
20:25 PM
ruaok
6 hours.
20:26 PM
true dat, but some at least 300M we might have a more performant setup.
20:26 PM
let me read their best practices guide and see if I can glean anything.
20:26 PM
iliekcomputers shrugs
20:27 PM
iliekcomputers
the scale we're scaling for, 300M would be small potatoes
20:27 PM
ruaok
also true.
20:27 PM
iliekcomputers
that's my intuition, maybe reality is different
20:27 PM
ruaok
aight, let me put it this way... I really want to know all the caveats this time.
20:28 PM
as you said, switching in 3 years would be much harder.
20:28 PM
iliekcomputers
yeah, that makes sense.
20:28 PM
ruaok
and I agree with zas' take on scaling.
20:28 PM
partition users by server.
20:29 PM
so when one node gets full, we add more and migrate users over.
20:29 PM
20:29 PM
see TIP under insert.
20:29 PM
iliekcomputers
yup, designing for sharding is a good idea
20:30 PM
ruaok
also warning under UPDATE.
20:31 PM
that is the "import form last.fm" will become a problem case.
20:31 PM
iliekcomputers
that is updates though
20:31 PM
oh wait it says inserts, sorry
20:32 PM
ruaok
basically messing with anything other than the current chunk, is going to cost you.
20:32 PM
one way or another. read should continue to be fine though.
20:33 PM
iliekcomputers: we've seen this before, no?
20:33 PM
20:33 PM
iliekcomputers
in AB, i think
20:34 PM
Raghav has quit
20:34 PM
ruaok
> js = js.replace("\u0000", "")
20:34 PM
iliekcomputers
that's json v jsonb maybe
20:34 PM
ruaok
doesn't seem to be doing the trick though.
20:34 PM
I am using jsonb -- did you look at the schema in the pasted code?
20:35 PM
iliekcomputers
yeah, just did
20:35 PM
ruaok
4 columns.
20:35 PM
with inserted_at it will be 5.
20:35 PM
and with PG JSONB support the data still remains queryable. and indexable.
20:36 PM
adhawkins joined the channel
20:47 PM
Gore has quit
20:48 PM
prabal has quit
21:00 PM
Gore joined the channel
21:05 PM
Etua joined the channel
21:06 PM
Raghav joined the channel
21:35 PM
BrainzGit
21:37 PM
ruaok
how philosophical... TIME_TO_CONSIDER_STATS_AS_OLD
21:38 PM
Raghav has quit
21:40 PM
iliekcomputers
š
21:40 PM
ugh
21:40 PM
didn't push the actual email
21:44 PM
i've deployed this to spark-reader-beta anyways, hopefully we'll see some email tomorrow
21:46 PM
ruaok
ok, my script now gets past those 0x0000 errors.
21:46 PM
hopefully a full db in place in the morning.
21:50 PM
Etua has quit
21:59 PM
iliekcomputers
10000 additions since the last LB release
22:00 PM
š¤·š½
22:00 PM
ruaok
10000 new listens?
22:00 PM
oh changed code?
22:01 PM
iliekcomputers
yeah
22:01 PM
22:01 PM
most of it is spark tbh
22:01 PM
ruaok
exactly, that.
22:02 PM
still, we need to get back to regular releases.
22:13 PM
BrainzGit
22:21 PM
22:21 PM
kieto joined the channel
22:45 PM
prabal joined the channel
22:59 PM
ephem3r0l joined the channel
23:00 PM
supersandro2000 has quit
23:00 PM
supersandro2000 joined the channel
23:11 PM
ephem3r0l is now known as ephemer0l
23:45 PM
kieto has quit