Commit e970af73 authored by chen2022's avatar chen2022

beifen

parent db7e96ae
......@@ -23,13 +23,8 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
command:
--wait_timeout=31536000
--interactive_timeout=31536000
--max_connections=1200
--character-set-server=utf8mb4
--default-time-zone='+8:00'
--innodb_rollback_on_timeout='ON'
--innodb_lock_wait_timeout=500
--max_connections=7000
stateless-phpmyadmin:
......
......@@ -250,20 +250,20 @@ services:
- "38414:38414/tcp"
volumes:
- ./green-install-packs/etc/plugin.conf:/opt/5gc/plugin/external.conf
stateless-redis:
image: redis:6.2.6
container_name: stateless-redis
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 10.244.1.27
ports:
- "6379:6379/tcp"
# stateless-redis:
# image: redis:6.2.6
# container_name: stateless-redis
# restart: always
# privileged: true
# logging:
# driver: "json-file"
# options:
# max-size: "100m"
# networks:
# openxg:
# ipv4_address: 10.244.1.27
# ports:
# - "6379:6379/tcp"
networks:
openxg:
......
......@@ -25,7 +25,9 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
LOCAL_IP = "192.168.43.236:1001";
##这个地方要是同一网段可以用宿主机,反之一定要用外网IP,要不然数据进不去
PHP_URL = "http://182.92.109.164:11001/admin/api/update_ue";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
LOCAL_IP = "192.168.43.236:1001";
PHP_URL = "http://182.92.109.164:11001/admin/api/update_ue";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
LOCAL_IP = "192.168.43.236:1001";
PHP_URL = "http://182.92.109.164:11001/admin/api/update_ue";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
LOCAL_IP = "192.168.43.236:1001";
PHP_URL = "http://182.92.109.164:11001/admin/api/update_ue";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
LOCAL_IP = "192.168.43.236:1001";
PHP_URL = "http://182.92.109.164:11001/admin/api/update_ue";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -18,18 +18,51 @@
## start ue
#/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 -i imsi-460110000000001
#第二种
#$i默认传1
ueid=460110000000001
#第二种 案例
#sudo ./shell.sh 500 460110000000031
# sudo ./shell.sh 个数 imsi开始数据
#final_ueid="imsi-460110000000001"
#imsi
final_ueid="imsi-"$2
beishu=10
for ((i=1;i<=$1;i++))
do
echo
final_ueid="imsi-"$ueid
/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n 10 -i $final_ueid &
sleep 10
ueid=`expr $ueid + 10`
/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -i $final_ueid &
ueid=`expr $ueid + 1`
#每注册10个 sleep
if [ $i -ge $beishu ]&&[ ` expr $i % $beishu` -eq 0 ];then
sleep 12
fi
done
# -eq //equals等于
# -ne //no equals不等于
# -gt //greater than 大于
# -lt //less than小于
# -ge //greater equals大于等于
# -le //less equals小于等于
#sleep 30
# #### UE注销
# logout_id=460110000000001
# #/UERANSIM/build/nr-cli imsi-460110000000001 --exec "deregister switch-off"
# for ((i=1;i<=$1;i++))
# do
# echo
# logout_final_ueid="imsi-"$logout_id
# /UERANSIM/build/nr-cli $logout_final_ueid --exec "deregister switch-off"
# sleep 2
# logout_id=`expr $logout_id + 1`
# done
##第一种
# /UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 &>/dev/null &
......
......@@ -14,7 +14,9 @@ function ds_json_encode($code, $message='', $result = '')
$ue_num = $_GET['ue_num'];
$commond = "/work/shell.sh ".$ue_num;
$imsi = $_GET['imsi'];
# sudo ./shell.sh 30 460110000000031
$commond = "/work/shell.sh ".$ue_num." ".$imsi;
//echo $commond;exit;
system($commond,$status);
......
......@@ -2,5 +2,5 @@
character-set-server=utf8mb4
default-time-zone='+8:00'
innodb_rollback_on_timeout='ON'
max_connections=500
max_connections=7000
innodb_lock_wait_timeout=500
......@@ -130,7 +130,7 @@ function main()
dcv=$(docker-compose --version)
until [ ${dcv:23:6} == 1.28.2 ]
do
curl -L "https://github.com.cnpmjs.org/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
dcv=$(docker-compose --version)
......
amf @ 6761011e
Subproject commit bda176b2c6667e584c78fa81cc65b5e54f79d407
Subproject commit 6761011ec734023049dbcaf74a8337c208b07996
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