sonic-buildimage/dockers/docker-orchagent
Tamer Ahmed 5f3c4fac4b
[docker-orchagent] Call sonic-cfggen Once (#4936)
Optimizing number of calls made to sonic-cfggen during service
start up as it adds to total system boot up time.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>

**- Why I did it**
sonic-cfggen call is slow and it adds to system start up time

**- How I did it**
places all required variable into single template and called into sonic-cfggen using this template

**- How to verify it**
***-Test 1***
there is an average saving of .5 to 1 sec between old script and new script
```
root@str-s6000-acs-14:/# time ./orchagent_old.sh
/usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d

real	0m3.546s
user	0m2.365s
sys	0m0.585s

root@str-s6000-acs-14:/# time ./orchagent_new.sh
/usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d

real	0m2.058s
user	0m1.650s
sys	0m0.363s
```
***-Test 2***
Built an image with this change and orchagent is running with intended params:
```
admin@str-s6000-acs-14:~$ ps -ef | grep orchagent
root      2988  1901  1 02:09 pts/0    00:00:02 /usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d
```

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
2020-07-14 15:36:47 -07:00
..
base_image_files [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-10 16:21:02 -08:00
arp_update.conf [docker-orchagent]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
critical_processes [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-init.sh [docker-orchagent]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
Dockerfile.j2 [docker-orchagent]: upgrade docker-orchagent to buster (#4889) 2020-07-12 18:08:51 +00:00
enable_counters.py [watermark] Fix error: BUFFER_POOL_WATERMARK isn't enabled by default (#4882) 2020-07-12 18:08:52 +00:00
ipinip.json.j2 Generate interface table to have an entry designated to default VRF. (#2848) 2019-06-10 14:02:55 -07:00
orchagent.sh [docker-orchagent] Call sonic-cfggen Once (#4936) 2020-07-14 15:36:47 -07:00
ports.json.j2 Buffers configuration update on port speed change (#1345) 2018-01-29 08:11:05 -08:00
supervisord.conf [docker-orchagent]: start portsyncd before orchagent (#4845) 2020-06-24 22:48:37 -07:00
switch.json.j2 [swss]: Add hash seed 15 for SpineRouter type (#3390) 2019-08-28 15:46:48 -07:00
swss_vars.j2 [docker-orchagent] Call sonic-cfggen Once (#4936) 2020-07-14 15:36:47 -07:00
swssconfig.sh [fast-reboot] Back up FDB/ARP/Default routes (#4795) 2020-06-20 15:30:53 -07:00