summaryrefslogtreecommitdiffstats
path: root/docker/supervisor.sh
blob: b67de2212c4506f3bd4006f0389763175e07010f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# nginx service start when boot
supervisor_config='/etc/supervisor/conf.d/yardstick.conf'

if [[ ! -e "${supervisor_config}" ]];then
    cat << EOF > "${supervisor_config}"
[supervisord]
nodaemon = true

[program:nginx]
command = service nginx restart

[program:yardstick_uwsgi]
directory = /etc/yardstick
command = uwsgi -i yardstick.ini
EOF
fi
ent list <linux-mm@kvack.org> Description: Nodes that are online. What: /sys/devices/system/node/has_normal_memory Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: Nodes that have regular memory. What: /sys/devices/system/node/has_cpu Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: Nodes that have one or more CPUs. What: /sys/devices/system/node/has_high_memory Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: Nodes that have regular or high memory. Depends on CONFIG_HIGHMEM. What: /sys/devices/system/node/nodeX Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: When CONFIG_NUMA is enabled, this is a directory containing information on node X such as what CPUs are local to the node. Each file is detailed next. What: /sys/devices/system/node/nodeX/cpumap Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: The node's cpumap. What: /sys/devices/system/node/nodeX/cpulist Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: The CPUs associated to the node. What: /sys/devices/system/node/nodeX/meminfo Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: Provides information about the node's distribution and memory utilization. Similar to /proc/meminfo, see Documentation/filesystems/proc.txt What: /sys/devices/system/node/nodeX/numastat Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: The node's hit/miss statistics, in units of pages. See Documentation/numastat.txt What: /sys/devices/system/node/nodeX/distance Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: Distance between the node and all the other nodes in the system. What: /sys/devices/system/node/nodeX/vmstat Date: October 2002 Contact: Linux Memory Management list <linux-mm@kvack.org> Description: The node's zoned virtual memory statistics. This is a superset of numastat. What: /sys/devices/system/node/nodeX/compact Date: February 2010 Contact: Mel Gorman <mel@csn.ul.ie> Description: When this file is written to, all memory within that node will be compacted. When it completes, memory will be freed into blocks which have as many contiguous pages as possible What: /sys/devices/system/node/nodeX/hugepages/hugepages-<size>/ Date: December 2009 Contact: Lee Schermerhorn <lee.schermerhorn@hp.com> Description: The node's huge page size control/query attributes. See Documentation/vm/hugetlbpage.txt