Re: [vpp-dev] VCL defaults to app-local-scope

2019-07-11 Thread Florin Coras
Hi Alok, 

VCL, on master, defaults to no scope set. Local and global scope are set only 
if requested in vcl.config as “app-local-scope” or “app-global-scope” or if set 
via environment variables, like in your example lower. For more details check 
vcl_cfg.c. Session layer interprets no scope set as global scope only, so as 
long as no env variables are set and vcl.conf is like the one you have lower, 
global scope should be the one the app gets. 

Now, regarding the sock test server and client, are you testing through the 
stack or cut-through connectivity? If the latter, then you need the local scope 
to be configured, otherwise cut-through connections don’t work. 

Also, take a look at [1] instead of sock_test_client/server apps if you’re 
interested in through the stack throughput testing. Iperf can also be used for 
cut-through connections but the only example you can find is here [2], so 
you’ll have to parse a bit of python to understand it. 

Hope this helps, 
Florin

[1] https://wiki.fd.io/view/VPP/HostStack/LDP/iperf 

[2] https://git.fd.io/vpp/tree/test/test_vcl.py#n287 



> On Jul 11, 2019, at 3:16 PM, Alok Nikhil (anikhil) via Lists.Fd.Io 
>  wrote:
> 
> I was following the discussion on this thread - VCL-Error 
> 
> That led me to believe VCL starts with a global-scope as the default. 
> However, I tried a hosting the sock_test_server and the client cannot connect 
> unless I export VCL_APP_SCOPE_LOCAL=true
> 
> This is what my /etc/vpp/vcl.conf looks like
> vcl {
>   heapsize 1024M
>   rx-fifo-size 400
>   tx-fifo-size 400
>   api-socket-name /var/run/vpp/vpp-api.sock
> }
> 
> Is the default behaviour now changed? -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#13493): https://lists.fd.io/g/vpp-dev/message/13493
> Mute This Topic: https://lists.fd.io/mt/32435763/675152
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13494): https://lists.fd.io/g/vpp-dev/message/13494
Mute This Topic: https://lists.fd.io/mt/32435763/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] VCL defaults to app-local-scope

2019-07-11 Thread Alok Nikhil (anikhil) via Lists.Fd.Io
Thanks Florin! That works.

Just a couple of more questions -
1) You mentioned the VCL library was undergoing a refactor. Is it now stable 
enough for production use?
2) VCL doesn't clean up any sessions, if the app crashes and doesn't do close 
the session before doing so. Is this expected? Would the work-around be to have 
an external agent clean the session up through vppctl?

--Alok
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13495): https://lists.fd.io/g/vpp-dev/message/13495
Mute This Topic: https://lists.fd.io/mt/32435763/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] VCL defaults to app-local-scope

2019-07-11 Thread Florin Coras
Hi Alok, 

Inline.

> On Jul 11, 2019, at 5:19 PM, Alok Nikhil (anikhil) via Lists.Fd.Io 
>  wrote:
> 
> Thanks Florin! That works. 
> 
> Just a couple of more questions -
> 1) You mentioned the VCL library was undergoing a refactor. Is it now stable 
> enough for production use?

Yes, VCL refactoring was completed several releases ago. It should be in good 
shape now. 

> 2) VCL doesn't clean up any sessions, if the app crashes and doesn't do close 
> the session before doing so. Is this expected? Would the work-around be to 
> have an external agent clean the session up through vppctl?

You’ll have to wait until the binary api reaper figures out that vcl’s binary 
api client has died. At that point, all sessions should be forcefully cleaned 
up. 

Florin

> 
> --Alok -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#13495): https://lists.fd.io/g/vpp-dev/message/13495
> Mute This Topic: https://lists.fd.io/mt/32435763/675152
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13496): https://lists.fd.io/g/vpp-dev/message/13496
Mute This Topic: https://lists.fd.io/mt/32435763/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] VCL defaults to app-local-scope

2019-07-17 Thread Alok Nikhil (anikhil) via Lists.Fd.Io
Great! Thanks Florin.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13523): https://lists.fd.io/g/vpp-dev/message/13523
Mute This Topic: https://lists.fd.io/mt/32435763/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-