Commit e970af73 authored by chen2022's avatar chen2022

beifen

parent db7e96ae
...@@ -23,13 +23,8 @@ services: ...@@ -23,13 +23,8 @@ services:
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
command: command:
--wait_timeout=31536000 --max_connections=7000
--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
stateless-phpmyadmin: stateless-phpmyadmin:
......
...@@ -250,20 +250,20 @@ services: ...@@ -250,20 +250,20 @@ services:
- "38414:38414/tcp" - "38414:38414/tcp"
volumes: volumes:
- ./green-install-packs/etc/plugin.conf:/opt/5gc/plugin/external.conf - ./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
restart: always # restart: always
privileged: true # privileged: true
logging: # logging:
driver: "json-file" # driver: "json-file"
options: # options:
max-size: "100m" # max-size: "100m"
networks: # networks:
openxg: # openxg:
ipv4_address: 10.244.1.27 # ipv4_address: 10.244.1.27
ports: # ports:
- "6379:6379/tcp" # - "6379:6379/tcp"
networks: networks:
openxg: openxg:
......
...@@ -25,7 +25,9 @@ AMF = ...@@ -25,7 +25,9 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF"; 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; RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds) # Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
...@@ -25,7 +25,7 @@ AMF = ...@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF"; 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; RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds) # Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
...@@ -25,7 +25,7 @@ AMF = ...@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF"; 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; RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds) # Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
...@@ -25,7 +25,7 @@ AMF = ...@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF"; 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; RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds) # Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
...@@ -25,7 +25,7 @@ AMF = ...@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF"; 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; RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds) # Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
...@@ -18,18 +18,51 @@ ...@@ -18,18 +18,51 @@
## start ue ## start ue
#/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
#第二种 #第二种 案例
#$i默认传1 #sudo ./shell.sh 500 460110000000031
ueid=460110000000001 # sudo ./shell.sh 个数 imsi开始数据
#final_ueid="imsi-460110000000001"
#imsi
final_ueid="imsi-"$2
beishu=10
for ((i=1;i<=$1;i++)) for ((i=1;i<=$1;i++))
do do
echo echo
final_ueid="imsi-"$ueid /UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -i $final_ueid &
/UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n 10 -i $final_ueid & ueid=`expr $ueid + 1`
sleep 10 #每注册10个 sleep
ueid=`expr $ueid + 10` if [ $i -ge $beishu ]&&[ ` expr $i % $beishu` -eq 0 ];then
sleep 12
fi
done 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 & # /UERANSIM/build/nr-ue -c /etc/openxg/ue.yaml -n $1 &>/dev/null &
......
...@@ -14,7 +14,9 @@ function ds_json_encode($code, $message='', $result = '') ...@@ -14,7 +14,9 @@ function ds_json_encode($code, $message='', $result = '')
$ue_num = $_GET['ue_num']; $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; //echo $commond;exit;
system($commond,$status); system($commond,$status);
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
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=500 max_connections=7000
innodb_lock_wait_timeout=500 innodb_lock_wait_timeout=500
...@@ -130,7 +130,7 @@ function main() ...@@ -130,7 +130,7 @@ function main()
dcv=$(docker-compose --version) dcv=$(docker-compose --version)
until [ ${dcv:23:6} == 1.28.2 ] until [ ${dcv:23:6} == 1.28.2 ]
do 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 chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
dcv=$(docker-compose --version) 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