What is JFrog Router? [Video]

Derek Pang
2021-02-02 19:34

Introducing the JFrog Router microservice in JFrog platform.

 

Video Transcription

Hi, my name is Derek from JFrog Support and in the short video, I will be introducing the JFrog Router. With the update to the united platform, one of the new things that were introduced were new microservices in our JFrog products. For example, in Artifactory, there is the Access, Event, Frontend, Metadata, Replicator and the subject of this video that Jfrog Router.

The Jfrog Router is the hub of communication. It has the responsibility of coordinating the communication of it’s microservices, like the aforementioned microservices of Artifactory. It is also responsible for organizing the communication between different JFrog products like Artifactory and XRAY, in which the Router microservices of each product will communicate with each other. The responsibilities that also belong to the Router include, service discovery, monitoring the health of the local JFrog services and enabling TLS between nodes. To read more on how to enable TLS, please read our TLS documentation on our Wiki. The Router microservice utilizes multiple ports. You can see the default ports that it utilize is in our system requirements page on our Wiki.

The Router’s configuration, for example, the ports it uses or the verbosity of its logging can be configured in the product system YAML file. You can see an example of our product system YAML files in our Wiki, for example, Artifactory. So, if I want to set the router login to be more verbose, I can look at the router template in the system YAML in our Wiki and look for the logging section. I can then set the level to debug. For example, I would depend the following to enable debug logging into router application logs. In the logs, this microservice is denoted with J-F-R-O-U and you can find the router logs in the log directory, pre pended with the word router.

There are two REST API end points that you can use to troubleshoot this further. One is the router ping end point, where it returns an okay if successful. This means that the instance you are coming from can connect to the router endpoint. Using this health endpoint is useful to see if a particular service is healthy or not. This ends our short look into the JFrog Router microservices. Thank you for watching and I hope you enjoy. Feel free to leave your comments, feedback, and questions below.