Commit de5cad1c authored by chen2022's avatar chen2022

beifen20220522

parent e970af73
...@@ -23,10 +23,7 @@ services: ...@@ -23,10 +23,7 @@ services:
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
command: command:
--max_connections=7000 --max_connections=70000
stateless-phpmyadmin: stateless-phpmyadmin:
image: phpmyadmin/phpmyadmin image: phpmyadmin/phpmyadmin
container_name: stateless-phpmyadmin container_name: stateless-phpmyadmin
...@@ -34,9 +31,11 @@ services: ...@@ -34,9 +31,11 @@ services:
logging: logging:
driver: "json-file" driver: "json-file"
options: options:
max-size: "1m" max-size: "100m"
depends_on: depends_on:
- stateless-mysql - stateless-mysql
volumes:
- ./green-install-packs/etc/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
networks: networks:
openxg: openxg:
aliases: aliases:
...@@ -48,6 +47,56 @@ services: ...@@ -48,6 +47,56 @@ services:
PMA_HOST: 10.244.1.7 PMA_HOST: 10.244.1.7
PMA_PORT: 3306 PMA_PORT: 3306
# stateless-mysql:
# # image: mysql/mysql-server:5.7
# image: mysql:5.7
# container_name: stateless-mysql
# restart: always
# logging:
# driver: "json-file"
# options:
# max-size: "1m"
# volumes:
# - ../docker-mysql/:/var/lib/mysql
# - ../etc/config:/etc/mysql/conf.d
# - ../etc/init:/docker-entrypoint-initdb.d/
# environment:
# - MYSQL_ROOT_PASSWORD=123456
# command:
# --max_connections=70000
# ports:
# - "3309:3306"
# - "33090:33060"
# networks:
# openxg:
# aliases:
# - web_mysql
# ipv4_address: 10.244.1.7
# stateless-phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: stateless-phpmyadmin
# restart: always
# logging:
# driver: "json-file"
# options:
# max-size: "1m"
# depends_on:
# - stateless-mysql
# # -condition: service_healthy
# volumes:
# - ./green-install-packs/etc/000-default.conf:/etc/apache2/sites-enabled/000-default.con
# networks:
# openxg:
# aliases:
# - web_phpmyadmin
# ipv4_address: 10.244.1.8
# ports:
# - "8080:80"
# environment:
# # PMA_ARBITRARY: 1
# PMA_HOST: 10.244.1.7
# PMA_PORT: 3306
networks: networks:
openxg: openxg:
external: external:
......
version: '3.3' version: '3.3'
services: services:
stateless-mysql:
image: mysql:5.7
container_name: stateless-mysql
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
openxg:
aliases:
- web_mysql
ipv4_address: 10.244.1.7
ports:
- "3309:3306"
- "33090:33060"
volumes:
- ../docker-mysql/:/var/lib/mysql
- ../etc/config:/etc/mysql/conf.d
- ../etc/init:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: root
command:
--max_connections=70000
stateless-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: stateless-phpmyadmin
restart: always
logging:
driver: "json-file"
options:
max-size: "100m"
depends_on:
- stateless-mysql
volumes:
- ./green-install-packs/etc/000-default.conf:/etc/apache2/sites-enabled/000-default.con
networks:
openxg:
aliases:
- web_phpmyadmin
ipv4_address: 10.244.1.8
ports:
- "8080:80"
environment:
PMA_HOST: 10.244.1.7
PMA_PORT: 3306
stateless-udsf:
image: stateless-udsf:v1.0
container_name: stateless-udsf
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
openxg:
ipv4_address: 10.244.1.16
depends_on:
- stateless-mysql
stateless-plugin:
image: stateless-plugin:v1.0
container_name: stateless-plugin
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 10.244.1.20
ports:
- "38414:38414/tcp"
volumes:
- ./green-install-packs/etc/plugin.conf:/opt/5gc/plugin/external.conf
stateless-udr: stateless-udr:
image: stateless-udr:v1.0 image: stateless-udr:v1.0
container_name: stateless-udr container_name: stateless-udr
...@@ -70,8 +146,6 @@ services: ...@@ -70,8 +146,6 @@ services:
- -c - -c
- | - |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o /opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o
stateless-amf2: stateless-amf2:
image: stateless-amf:v1.0 image: stateless-amf:v1.0
container_name: stateless-amf2 container_name: stateless-amf2
...@@ -93,8 +167,7 @@ services: ...@@ -93,8 +167,7 @@ services:
- /bin/bash - /bin/bash
- -c - -c
- | - |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o /opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o
stateless-amf3: stateless-amf3:
image: stateless-amf:v1.0 image: stateless-amf:v1.0
container_name: stateless-amf3 container_name: stateless-amf3
...@@ -116,8 +189,7 @@ services: ...@@ -116,8 +189,7 @@ services:
- /bin/bash - /bin/bash
- -c - -c
- | - |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o /opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o
stateless-amf4: stateless-amf4:
image: stateless-amf:v1.0 image: stateless-amf:v1.0
container_name: stateless-amf4 container_name: stateless-amf4
...@@ -139,8 +211,7 @@ services: ...@@ -139,8 +211,7 @@ services:
- /bin/bash - /bin/bash
- -c - -c
- | - |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o /opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o
stateless-amf5: stateless-amf5:
image: stateless-amf:v1.0 image: stateless-amf:v1.0
container_name: stateless-amf5 container_name: stateless-amf5
...@@ -163,7 +234,6 @@ services: ...@@ -163,7 +234,6 @@ services:
- -c - -c
- | - |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o /opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /opt/5gc/amf/amf.conf -o
stateless-smf1: stateless-smf1:
image: stateless-smf:v1.0 image: stateless-smf:v1.0
container_name: stateless-smf1 container_name: stateless-smf1
...@@ -220,36 +290,8 @@ services: ...@@ -220,36 +290,8 @@ services:
volumes: volumes:
- ./green-install-packs/etc/spgwu.conf:/opt/5gc/spgw-u-tiny/external.conf - ./green-install-packs/etc/spgwu.conf:/opt/5gc/spgw-u-tiny/external.conf
stateless-udsf:
image: stateless-udsf:v1.0
container_name: stateless-udsf
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 10.244.1.16
volumes:
- ./green-install-packs/etc/udsf.conf:/opt/5gc/udsf/external.conf
stateless-plugin:
image: stateless-plugin:v1.0
container_name: stateless-plugin
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 10.244.1.20
ports:
- "38414:38414/tcp"
volumes:
- ./green-install-packs/etc/plugin.conf:/opt/5gc/plugin/external.conf
# stateless-redis: # stateless-redis:
# image: redis:6.2.6 # image: redis:6.2.6
# container_name: stateless-redis # container_name: stateless-redis
......
...@@ -2,7 +2,7 @@ version: '3.3' ...@@ -2,7 +2,7 @@ version: '3.3'
services: services:
stateless-ueransim: stateless-ueransim:
#image: hogostan/ueransim:1.0 #image: hogostan/ueransim:1.0
image: ueransim:v5.0 image: ueransim:v6.0
container_name: stateless-ueransim container_name: stateless-ueransim
restart: always restart: always
privileged: true privileged: true
...@@ -22,12 +22,12 @@ services: ...@@ -22,12 +22,12 @@ services:
command: command:
- /bin/bash - /bin/bash
- -c - -c
- | - |
/etc/init.d/php7.2-fpm stop
/etc/init.d/php7.2-fpm start
/etc/init.d/nginx stop /etc/init.d/nginx stop
/etc/init.d/nginx start /etc/init.d/nginx start
/UERANSIM/build/nr-gnb -c /etc/openxg/gnb.yaml /etc/init.d/php7.2-fpm stop
/etc/init.d/php7.2-fpm start
/UERANSIM-master/build/nr-gnb -c /etc/openxg/gnb.yaml
networks: networks:
......
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerName 10.244.1.8
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
#!/bin/bash #!/bin/bash
#第四种
/UERANSIM-master/build/nr-ue -t 1000 -c /etc/openxg/ue.yaml -n $1
#第三种 测试
# #$i默认传1 # #$i默认传1
# for ((i=1;i<=$1;i++)) # for ((i=1;i<=$1;i++))
# do # do
...@@ -19,23 +35,26 @@ ...@@ -19,23 +35,26 @@
#/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 -i imsi-460110000000001 #/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 -i imsi-460110000000001
#第二种 案例 #第二种 案例
#sudo ./shell.sh 500 460110000000031 #sudo ./shell.sh 500 460110000000001
# sudo ./shell.sh 个数 imsi开始数据 # sudo ./shell.sh 个数 imsi开始数据
#final_ueid="imsi-460110000000001" #final_ueid="imsi-460110000000001"
#imsi #imsi
final_ueid="imsi-"$2
beishu=10 # ueid=$2 #初始执行的UE值
for ((i=1;i<=$1;i++)) # final_ueid="imsi-"$2
do # beishu=10
echo # for ((i=1;i<=$1;i++))
/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -i $final_ueid & # do
ueid=`expr $ueid + 1` # final_ueid="imsi-"$ueid
#每注册10个 sleep # /UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -i $final_ueid &
if [ $i -ge $beishu ]&&[ ` expr $i % $beishu` -eq 0 ];then # ueid=`expr $ueid + 1`
sleep 12 # #每注册10个 sleep
fi # if [ $i -ge $beishu ]&&[ ` expr $i % $beishu` -eq 0 ];then
# sleep 12
# fi
# # echo $final_ueid
done # done
# -eq //equals等于 # -eq //equals等于
# -ne //no equals不等于 # -ne //no equals不等于
...@@ -69,6 +88,6 @@ done ...@@ -69,6 +88,6 @@ done
##放在后台运行 ##放在后台运行 nohup java -jar /xxx/xxx/xxx.jar >/dev/null 2>&1 & 后台运行 不输出日志
#/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 &>/dev/null & #/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 &>/dev/null &
\ No newline at end of file
<?php <?php
set_time_limit(0); ini_set('memory_limit', '128M');
set_time_limit(0);
ini_set('max_execution_time','0');
function ds_json_encode($code, $message='', $result = '') function ds_json_encode($code, $message='', $result = '')
{ {
$data = array('code' => $code, 'data' => $message, 'result' => $result); $data = array('code' => $code, 'data' => $message, 'result' => $result);
...@@ -14,9 +15,9 @@ function ds_json_encode($code, $message='', $result = '') ...@@ -14,9 +15,9 @@ function ds_json_encode($code, $message='', $result = '')
$ue_num = $_GET['ue_num']; $ue_num = $_GET['ue_num'];
$imsi = $_GET['imsi']; // $imsi = $_GET['imsi'];
# sudo ./shell.sh 30 460110000000031 # sudo ./shell.sh 30 460110000000031
$commond = "/work/shell.sh ".$ue_num." ".$imsi; $commond = "/work/shell.sh ".$ue_num;
//echo $commond;exit; //echo $commond;exit;
system($commond,$status); system($commond,$status);
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
No preview for this file type
[mysqld] [mysqld]
skip-name-resolve=1
character-set-server=utf8mb4 character-set-server=utf8mb4
default-time-zone='+8:00' default-time-zone='+8:00'
innodb_rollback_on_timeout='ON' innodb_rollback_on_timeout='ON'
max_connections=7000 max_connections=7000
innodb_lock_wait_timeout=500 innodb_lock_wait_timeout=500
...@@ -233,25 +233,28 @@ CREATE TABLE `tp5_ue_state` ( ...@@ -233,25 +233,28 @@ CREATE TABLE `tp5_ue_state` (
`updatetime` bigint(20) NOT NULL `updatetime` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- 转储表的索引
--
--
-- 表的索引 `tp5_ue_state`
--
ALTER TABLE `tp5_ue_state` ALTER TABLE `tp5_ue_state`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
ALTER TABLE `tp5_ue_state`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
--
-- 在导出的表使用AUTO_INCREMENT
--
-- --
-- 使用表AUTO_INCREMENT `tp5_ue_state` -- 表的结构 `tp5_cpu_data`
-- --
ALTER TABLE `tp5_ue_state`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
CREATE TABLE `tp5_cpu_data` (
`id` int(11) NOT NULL,
`cpu` int(11) NOT NULL DEFAULT '0',
`container_name` varchar(45) DEFAULT NULL,
`addtime` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `tp5_cpu_data`
ADD PRIMARY KEY (`id`);
ALTER TABLE `tp5_cpu_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
\ No newline at end of file
amf @ e963ac8a
Subproject commit 6761011ec734023049dbcaf74a8337c208b07996 Subproject commit e963ac8aad5059a8b1162dfb22c84e8c2d87b6e4
plugin @ 5ddee946
Subproject commit 0c1204dc7d951f0f54fb8bb87826c115023265ba Subproject commit 5ddee946c9fe2ede00617654f75080bffc58d8ed
udsf @ c9ef2f1d
Subproject commit ae3736e8c5da6f37a8a7b4150deae3d412736700 Subproject commit c9ef2f1d97a8eb649af280187d18ffb1c30f6450
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment