Routing using File-based Configuration

I’m new with Linkerd, have two application and need do routing them, but don’t working…

- kind: io.l5d.fs
  rootDir: disco

- protocol: http
  dtab: |
    /svc => /#/io.l5d.fs;
    /app1 => /svc/app1;
    /app2 => /svc/app2;
  - port: 8000

My app1 is responsible by interface and app2 is responsible by to return data. The app1 need call app2.

When i call http://localhost:8000/app1, linkerd return “No hosts are available for /svc/localhost:8000, Dtab.base=[/svc=>/#/io.l5d.fs;/app1=>/svc/app1;/app2=>/svc/app2], Dtab.local=[]. Remote Info: Not Available”.

Am i doing anything wrong?

Take a look at Debugging a linkerd setup and follow the instructions for debugging dtabs. Let us know how it goes!

Hello @william, thank you for answer.

I followed the steps to debug, but I could not see something wrong.

  • My app1 and app2 are working (I renamed app1 to ui and app2 to core);
  • Linkerd’s runnig;
  • In logs have a message:
    “service failure: com.twitter.finagle.NoBrokersAvailableException: No hosts are available for /svc/localhost:8000, Dtab.base=[/svc=>/#/io.l5d.fs;/ui=>/svc/ui;/core=>/svc/core], Dtab.local=[]. Remote Info: Not Available”;
  • When i make requests, linkerd show in admin page;
  • In metrics have
    " % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (6) Could not resolve host:";

Seeing my delegator in admin page, my apps are mapped.

Do you see something wrong?

You are using the io.l5d.fs namer. What are the contents of your disco directory?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.