Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 23:58:58

Author Topic: How to add 2000 dummy domains ?  (Read 2762 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
How to add 2000 dummy domains ?
« on: 2013-08-21, 16:26:57 »
Mustafa can you share this script ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to add 2000 dummy domains ?
« Reply #1 on: 2013-08-21, 16:37:17 »
Code: [Select]
<?php

$start
=date("Y/m/d H:i:s");

print(
"*** START ***n");

$s 1;
$f 200;

$fl strlen($f);

$m str_repeat('0'$fl);

for (
$a $s$a <= $f$a++) {
$b strlen($a);
$c substr_replace($m$a, -$b);

exec("sh /script/add --class=domain --name=dom{$c}.com --v-dnstemplate_name=default.dnst");
print("- add dom{$c}.comn");
}
print(
"*** END ***n");

$end=date("Y/m/d H:i:s");

print(
"START: " $start " - END: " $end "n");

- Change - '$f = 200;' to '$f = 2000;'
- Change - '/add' to '/delete' and '- add' to '- delete' if want delete
- Remove ' --v-dnstemplate_name=default.dnst' if change 'add' to 'delete'
- Change 'default.dnst' to your own
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #2 on: 2013-08-21, 16:40:47 »
Thanks. I will test clean installation on VirtualBox and in case it doesn't work well I wil send you whole image.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to add 2000 dummy domains ?
« Reply #3 on: 2013-08-21, 16:42:12 »
Wait for latest update (2013082102) because faster and no memory leak.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to add 2000 dummy domains ?
« Reply #4 on: 2013-08-21, 16:44:06 »
2013082102 just enough using 'memory_limit = 256M' (maybe less) inside /opt/php52s/etc/php.ini.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #5 on: 2013-08-21, 16:52:29 »
Quote from: "MRatWork"
2013082102 just enough using 'memory_limit = 256M' (maybe less) inside /opt/php52s/etc/php.ini.

OK. I will test and report.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #6 on: 2013-08-21, 17:07:26 »
It doesn't work at all with 256M - 1500 domains:

Code: [Select]
/script/fixweb

- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers

Fixing Web server config
- 'defaults' and 'php-fpm' at 'localhost'
- 'activedesign.xxx.pl' ('activedesign') at 'localhost'
[root@localhost /]#

Only one domain is being fixed.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to add 2000 dummy domains ?
« Reply #7 on: 2013-08-21, 17:13:01 »
Ok, maybe not enough for 256M on your server. Need more like 1024M.

But, to make sure using 2013082102. Upload 2013082002 have memory leak and slower.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #8 on: 2013-08-21, 17:18:36 »
Yes, I'm trying on a clean system, then add 2000 domains then run /script/fixdns and /script/fixweb
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #9 on: 2013-08-21, 18:11:12 »
OK. I'm adding 2000 domains ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #10 on: 2013-08-21, 19:24:40 »
START: 2013/08/21 14:08:46 - END: 2013/08/21 15:23:40 - not bad time for 2000 domains

So far on clear system fixweb and fixdns flies !

Let's see what's the reason.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #11 on: 2013-08-21, 20:45:44 »
It's working super fast on this system :D Let's try to change packages to match my production system.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #12 on: 2013-08-21, 23:42:25 »
Changed Apache to nginxproxy + Apache and now it's getting slower.

I'm on 1407 domain inside /script/fixweb.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #13 on: 2013-08-22, 00:11:50 »
It takes about 5 seconds for domain now. I'm on 1788th domain ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: How to add 2000 dummy domains ?
« Reply #14 on: 2013-09-17, 20:56:41 »
The above script does not work on Kloxo-MR 6.5.1.a-2013091704
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.039 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM