[go-nuts] SQL query lock

2017-06-16 Thread Alexander Petrovsky
Hello! >From my app I have connection to MySQL with follow settings: db.SetMaxIdleConns(0) db.SetMaxOpenConns(10) The app run about 8 concurrent queries to mysql, every 1 minute (incremental fast select) and every 5 minute (full slow select). I couple days ago, my team mate increase query conc

[go-nuts] Re: Different latency inside and outside

2017-03-19 Thread Alexander Petrovsky
As I know it's doesn't matter, before I've used net/http, and the situation doesn't change, except the count of allocations, they are reduced Could you point please where fasthttp doesn't follow the specs? воскресенье, 19 марта 2017 г., 20:00:25 UTC+3 пользователь Tamás Gulácsi написал: > > As

Re: [go-nuts] Re: Different latency inside and outside

2017-03-19 Thread Alexander Petrovsky
ph it after that. > * Are we measuring the right thing in the internal measurements? If the > window between external/internal is narrow, then chances are we are doing > the wrong thing on the internal side. > Could you explain this? > > Google's SRE handbook mention

[go-nuts] Re: Different latency inside and outside

2017-03-19 Thread Alexander Petrovsky
ot right, and the main question - how can I measure the latency in other parts of my application? This is main question in this topic! > > > Konstantin > > On Saturday, 18 March 2017 19:52:21 UTC, Alexander Petrovsky wrote: >> >> Hello! >> >> Colleagues, I n

[go-nuts] Re: Different latency inside and outside

2017-03-19 Thread Alexander Petrovsky
said, I'm using only percentiles, not average. > > --dave > > > On Saturday, March 18, 2017 at 3:52:21 PM UTC-4, Alexander Petrovsky wrote: >> >> Hello! >> >> Colleagues, I need your help! >> >> And so, I have the application, that accept t

[go-nuts] Different latency inside and outside

2017-03-18 Thread Alexander Petrovsky
Hello! Colleagues, I need your help! And so, I have the application, that accept through http (fasthttp) dynamic json, unmarshal it to the map[string]interface{} using ffjson, after that some fields reads into struct, then using this struct I make some calculations, and then struct fields writ

Re: [go-nuts] Re: JSON smart parsing

2016-12-20 Thread Alexander Petrovsky
Yep, I can, and I've already reads this article, but as I said, I need to unmarshal only part of the big body json with many dynamic fields. And I don't know and don't need all fields to unmarshal, only few. So, something like stream json parsers, which efficiently emit key and value, by example

[go-nuts] Re: JSON smart parsing

2016-12-20 Thread Alexander Petrovsky
Hi! Thanks for the help, but I've try this, and unfortunately this is doesn't work for the big body dynamic json with more the 10 field -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fro

[go-nuts] JSON smart parsing

2016-12-20 Thread Alexander Petrovsky
Hello! By example I have follow json {a:1, b:2, c:str, d:123, ..., z99: 1, z100: 10}, suppose it's veeery big json, and I don't need the whole fields in my little struct: Struct { a int `json:"a"` y int `json:"y"` } What I want? I want smart unmarshaler that can unmarshal my json to struct,

[go-nuts] Re: Memory usage and go tool pprof

2016-11-22 Thread Alexander Petrovsky
Hello! "Real" is what I see in atop/htop/ps, as i mentioned erlier. Yep, about asked memory from OS is in my mind too, but how can I find situation when/why it's occur? To be more precise, my app load N merabytes from DB, and put them into map. So, I fully understand when N megabytes transform

[go-nuts] Memory usage and go tool pprof

2016-11-21 Thread Alexander Petrovsky
mode:0x2015a So, the main question why pprof show me that my program eats only 25Gb memory, while the atop/htop/top/ps shows me real situation. -- Петровский Александр / Alexander Petrovsky, Skype: askjuise Phone: +7 914 8 820 815 -- You received this message because you are subscribed to the