Giter Site home page Giter Site logo

Build Instructions about victorialogs HOT 15 CLOSED

faceair avatar faceair commented on June 14, 2024
Build Instructions

from victorialogs.

Comments (15)

faceair avatar faceair commented on June 14, 2024 1

Hi, I updated the readme, you can try it out!

from victorialogs.

faceair avatar faceair commented on June 14, 2024 1

I wrote in the documentation to configure the datasource address to be http://127.0.0.1:8481/select/0/, be sure to add /select/0/ in front of it. If you call it manually, the full URL is http://127.0.0.1:8481/select/0/loki/api/v1/query_range.
If you want to call push api to insert data, use http://127.0.0.1:8480/insert/0/loki/api/v1/push, but I haven't tested this api yet, maybe it's broken.

from victorialogs.

faceair avatar faceair commented on June 14, 2024 1

I can fix the push api issue first, which should help you better evaluate performance.

from victorialogs.

faceair avatar faceair commented on June 14, 2024 1

Seems like a simple problem that I've fixed. If there are other issues that affect your testing, open a new issue!

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

Thanks! will dockerize and test - is the URL/PATH for the /loki/api/v1/push API the same as the datasource?

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

The service seems to start fine:

....
2020-10-16T20:18:53.605Z        info    /tmp/VictoriaLogs/lib/mergeset/table.go:169     opening table "/root/vmstorage-data/indexdb/163E927168F483C0"...
2020-10-16T20:18:53.844Z        info    /tmp/VictoriaLogs/lib/mergeset/table.go:203     table "/root/vmstorage-data/indexdb/163E927168F483C0" has been opened in 0.240 seconds; partsCount: 0; blocksCount: 0, itemsCount: 0; sizeBytes: 0
2020-10-16T20:18:54.066Z        info    /tmp/VictoriaLogs/app/vmstorage/main.go:66      successfully opened storage "vmstorage-data" in 0.885 seconds; partsCount: 0; blocksCount: 0; rowsCount: 0; sizeBytes: 0
2020-10-16T20:18:54.067Z        info    /tmp/VictoriaLogs/app/vmstorage/transport/server.go:188 accepting vmselect conns at 0.0.0.0:8401
2020-10-16T20:18:54.067Z        info    /tmp/VictoriaLogs/lib/httpserver/httpserver.go:78       starting http server at http://:8482/
2020-10-16T20:18:54.067Z        info    /tmp/VictoriaLogs/app/vmstorage/transport/server.go:121 accepting vminsert conns at 0.0.0.0:8400
2020-10-16T20:18:54.067Z        info    /tmp/VictoriaLogs/lib/httpserver/httpserver.go:79       pprof handlers are exposed at http://:8482/debug/pprof/

The pprof endpoint works, but unfortunately the http server on 8481 is rejecting all connections without any logging event.

# curl http://127.0.0.1:8481/select/0/
curl: (56) Recv failure: Connection reset by peer
# curl http://127.0.0.1:8481/select/0/loki/api/v1/query_range
curl: (56) Recv failure: Connection reset by peer

Suggestions?

from victorialogs.

faceair avatar faceair commented on June 14, 2024

Are you running in a container? You may need to use the container's IP to access or expose the port.
Or show me the output of the netstat -nltp command.

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

It fails equally from inside/outside the container. 8482 in comparison works fine.

# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.0.11:34639        0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8400            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8401            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8482            0.0.0.0:*               LISTEN
udp        0      0 127.0.0.11:60502        0.0.0.0:*

Should the logs show any service listening on 8481? I don't see any at all

from victorialogs.

faceair avatar faceair commented on June 14, 2024

https://github.com/faceair/VictoriaLogs/blob/master/app/vmselect/main.go#L32
vmselect should be listening on port 8481. Is there any error when it starts?

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

Should -storageNode be different between vmselect and vminsert? settings them both to 8401 seems to do the trick

from victorialogs.

faceair avatar faceair commented on June 14, 2024

Yes, the ports are different, you can just use the ports mentioned in the readme.

$ bin/vmselect -storageNode 127.0.0.1:8401
$ bin/vminsert -storageNode 127.0.0.1:8400 -importerListenAddr 127.0.0.1:2003

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

Up and running now, throwing it some data! Thanks for the assistance, will PR the container and compose with Grafana if any useful.

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

Netcat inserts seem to work, the http push api as you mentioned not really. If you can use a tester once you patch it, happy to do so.

from victorialogs.

faceair avatar faceair commented on June 14, 2024

Right now I'm just verifying the feasibility of the project. I'm not sure yet how it will be maintained in the future, and I need to discuss it more with the VictoriaMetrics Team. You can keep an eye on it.

from victorialogs.

lmangani avatar lmangani commented on June 14, 2024

Absolutely, I was mostly curious to compare a few things against our Loki over Clickhouse clone. Your time is much appreciated!

from victorialogs.

Related Issues (5)

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.