Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I ask you to open a previously closed problem #70

Open
pecherskiy-v opened this issue Nov 7, 2021 · 5 comments
Open

I ask you to open a previously closed problem #70

pecherskiy-v opened this issue Nov 7, 2021 · 5 comments

Comments

@pecherskiy-v
Copy link

I am attaching a link to the problem and description #56

child process pids 2782 be terminated, trying reload 
last all pid:
    2782
child process pids 2783 be terminated, trying reload 
last all pid:
    2783
# php -v
PHP 8.0.12 (cli) (built: Oct 21 2021 16:26:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies
    with Xdebug v3.1.1, Copyright (c) 2002-2021, by Derick Rethans
# php --ri nsq 

nsq

nsq support => enabled
version => 3.5.1
author => zhenyu.wu[email:wuzhenyu@kuangjue.com]

nsqd

command:
    - /nsqd
    - -lookupd-tcp-address=nsqlookupd:4160
    - -broadcast-address=nsqd

nsqlookupd

command:
    - /nsqlookupd
$nsqLookupd = new \NsqLookupd("nsqlookupd:4161");

$this->nsq->subscribe($nsqLookupd, $nsqlConfig, function ($msg,$bev) use ($output) {
    $output->writeln($msg->payload);
    $output->writeln($msg->attempts);
    $output->writeln($msg->messageId);
    $output->writeln($msg->timestamp);
});

install:

pecl install nsq

@yunnian
Copy link
Owner

yunnian commented Nov 12, 2021

- /nsqd
- -lookupd-tcp-address=nsqlookupd:4160
- -broadcast-address=nsqd

$nsqLookupd = new \NsqLookupd("nsqlookupd:4161");

---------------------

Try it with ip everywhere.

@pecherskiy-v
Copy link
Author

registered the IP address directly, does not work.

@pecherskiy-v
Copy link
Author

$nsqlConig = [
            "topic" => Constant::TOPIC,
            "channel" => Constant::CHANNEL,
            "rdy" => 2,                //optional , default 1
            "connect_num" => 1,        //optional , default 1   
            "retry_delay_time" => 5000,  //optional, default 0 , if run callback failed, after 5000 msec, message will be retried
            "auto_finish" => true, //default true
        ];
        $nsqLookupd = new \NsqLookupd("10.***.**.248:4161"); //the nsqlookupd http addr

@pecherskiy-v
Copy link
Author

endless loop organized by \React\EventLoop\Loop

self::$loop = Loop::get();

...

self::$loop->run();

@pecherskiy-v
Copy link
Author

And there are no memory limits in the test environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants