Photon -- photon control Controller

Source: Internet
Author: User
Tags log4net
ArticleDirectory
    • Changing the "loadbalancing IP config" path to change the path of "loadbalancing IP config"
    • Counters counters
    • Dashboard
    • Troubleshooting Fault Diagnosis
    • Dump File setup Dump File Settings

 

Photon control photon controller photon control is your one-stop, control UI for photon. starting photoncontrol.exe doesn't open a window, doesn't start the server but adds an icon to the tray bar. A gray icon shows that photon is not running. when any photon server is process running, the icon turns blue. photon controlis a stand-alone control software for photon. if photoncontrol.exe is opened, the Windows window does not appear and the service is not started, but a system tray is added. The gray icon indicates photo. N is not running, while the blue icon indicates that photon is running. Content
    • OVERVIEW
    • Running photon run photon
    • Moving photon mobile photon
    • Changing the "loadbalancing IP config" path changes the path of "loadbalancing IP config"
    • Logs logs
    • Counters counters
    • Perfmon counters Performance Monitor
    • Dashboard counters dashboard counters
    • Dashboard
    • Troubleshooting Fault Diagnosis
    • Dump File setup Dump File Settings
OVERVIEW

Click the icon to open the menu. It allows you to: Click the system tray to open the menu:
    • Start and Stop photon.
Start and Stop photon
    • Install, start and stop photon services.
Initialize, start, and stop the photon Service
    • Change the game server config for loadbalancing (mycloud ).
Change the game server to loadbalancing (mycloud)
    • Setup and open photon's Performance Monitor (perfmon) counters.
Set and enable photon's Performance Monitor
    • Open the log files.
Open a log file
    • Open Working path in explorer.
Open the working path in Resource Manager
    • verify you are using the latest version of photon.
Check and update admin rights are required when you start photon control. this allows us to make an entry in the Windows Firewall and most importantly you can now add or remove services for photon. on start, photon control reads your license to let you verify how long it is valid and checks if you use the latest version of photon, shown in the "photon control" menu. the "autostart photon control" option starts P Hoton control when you login to Windows. this can be handy when you access a remote machine and can be used "using e working path" to spot photon's files. if the icon is not visible, click the tiny triangle and drag and drop the photon control icon from the popup back to the tray. administrator permissions are required to start photon control and configure the firewall to make the photon service available. When photon control is started, it reads the license to set the photon version. It is displayed on the photon control menu. Setting the "autostart photon control" option can automatically start photon control when logging on to the system. This is very convenient to remotely access a machine, and you can find the photon file through the "explore working path". If the icon is invisible, click the triangle and drag it to the tray.

Running photon run photon By default, two separate photon deployments (also called "instances") are available. Each starts a combination of server applications and used ports.   "Default"   Instance is running lite, litelobby, MMO and the policy application. Starting instance   "Loadbalancing (mycloud )"   Will run a master server and two game servers, which is a minimum photon cloud compatible setup. By default, two independent photon configurations are available, each of which can start a server application Program And use the required port, Default The instance runs lite, litelobby, MMO, and policy application. Loadbalancing (mycloud) The instance runs a master server and two game servers, which are the smallest photon cloud compatible settings. On a public server, photon shold run as service. This requires three steps in photon control: on a public server, photon runs as a Service. The following three steps are required:
    • Install the photon Service
Initialize photon Service
    • Install the perfmon counters (they might prove useful)
Initialize Performance Monitor
    • Start photon as service
Start photon as the service the perfmon counters are not exactly a requirement to run but they can't be enabled while photon is running, so it makes sense to set them up first. running photon as application is an alternative for local development. when you log off, photon will be shut down. perfmon Counters is not a required condition for service running, but they cannot be enabled when photon is running, so you must set it at the beginning, running photon for applications is an option for local development. When you log out, photon will be disabled. Moving photon mobile photon Before you move photon from one folder to another, you shoshould make sure to remove all services and also photon control autostart. install again at the new location. before you move photon from one folder to another, you need to confirm that all services are removed, and photon control is automatically started, and then initialized again in a new place. Changing the "loadbalancing IP config" path changes the "loadbalancing IP config" path while photon control can't be modified extensively, some important settings can be found in photoncontrol.exe. config. the "gameserverconfigpaths" setting is the one you might need when your project is based off loadbalancing but renamed. the gameserverconfigpaths is a list of ';'-separated paths, relative to the folder of P Hotoncontrol.exe. photon controlcan't be modified. You can find some important settings in photoncontrol.exe. config. When your project is based on loadbalancing, but it is not renamed, the "gameserverconfigpaths" setting item may be required. gameserverconfigpaths is a folder with the address segments separated by 'signature', which is relative to photoncontrol.exe. Logs logs Photon is logging essential information (State, exceptions, etc .) to several log files. click on "open logs" to show all logs that photon used in the past 12 hours. you can open more files as needed, of course. photon records necessary information to the server's log file. Click "Open logs" to view all logs in the past 12 hours. Of course, you can open more files if necessary. There are two "log" Folders: The following are two log folders:
    • All Application logs Are in Deploy/log folder. Anything that is logged by your business logic goes into a fitting file in deploy/log.
All application logs are stored in Deploy/log folder . Any business logic record will be filled in a file in this folder.
    • The Server core's log Folder is where your running executable is (E.g. bin_win32/log). They contain anything instance and CLR (DOTNET runtime) related.
The core log folder of the server is in the log folder under the binary directory you run, which contains all related instances and CLR we use log4net in the logic layer. it can be configured extensively and proved very useful.   Learn more about log4net here   . We can use log4net in the logic layer. It can be configured extensively and has proved to be very useful. Counters counter photon keeps track of several essential values as support for performance-and error-analysis. these are published in two separate sets of counters: "perfmon counters" and "Dashboard counters ". photon keeps track of some basic values for performance and error analysis. The following are two published independent counters: "perfmon counters" and "Dashboard counters ". Perfmon counters Performance Monitor the perfmon counters are key values from the photon core. they track values like connected peers, package count, reliable UDP usage, bandwidth and much more. these counters cannot be changed by the developer and are accessed by perfmon. perfmon is a GUI to create those performance graphs and is already installed with windows. if perfmon counters shoshould be logged over a longer time (and without running the GUI), photon control can setup and start logging to a file. under "perfmon counters", click "create logging set" and "start logging ". the logs shocould end up under C: \ perflogs \ admin \ photon_perf_log _ <date>. The value of BLG perfmon counters comes from photon core. They track some values, such as connected users, packet counts, reliable UDP usage, and bandwidth traffic. These counters cannot be changed by developing and accessing perfmon. Perfmon is a graphical tool installed on Windows to create some performance graphics. If the perfmon counter is recorded in a long time range, photon control may set and record information to the file. In "perfmon counters", you can click "create logging set" and "start logging" for configuration. Logs are stored in c: \ perflogs \ admin \ photon_perf_log _ <date>. BlG. Dashboard counters dashboard counters the dashboard counters track values within the business logic and can be extended as needed. Dashboard counters track numerical values in business logic. Dashboard dashboard the dashboard aggregates counter values and generates graphs for a website to monitor them. the dashboard itself can be installed as service while photon is already running. which counter data an application publishes (if at all), depends on the application's setup. lite has several pre-defined counters ready to use. the dashboard collects counter values and generates graphs on the web to monitor them. When photon is running, the dashboard can be initialized as a service. The release of counter data of an application depends on the definition in the application. Lite contains multiple predefined counters for use. Troubleshooting fault diagnosis if photon does not behave as expected, always have a look at the logs. If photon is not as expected, check the log. These are the most common pitfalls you shoshould check as well. The following are the most common errors that you need to check.
    • Missing DOTNET 3.5: In this case, photon can't start. Don't mix this up with the CLR version. The 2.0 CLR version is also used by DOTNET 3.5.
DOTNET Runtime Environment Missing
    • Application missing: If photon does not find one of the configured applications, it can't start. Check the configuration against deployed folders.
The configured application file is missing.
    • Build not up to date: Switching to a new server SDK, you shoshould always re-build your applications, referencing the assemblies from the libs folder. Otherwise they might be incompatible.
The SDK version referenced by the application is inconsistent with that of the server.
    • Firewall: If photon is running but not accessible from another machine, check the firewils. newer Windows versions have roles and rights and your Hoster most likely used hardware firewils.
Firewall blocked
    • Lag: By default, the roundtrip time is about 50 ms, even locally. This depends on a setting, explained on the Setup page. Read: Send delay and ACK Delay
The delay exceeds the set value. The default value is 50 ms dump file setup dump. If a server crashes and the reason for it is not found in the logs, photon can be configured to create dump files. these reflect the State and memory of the crash and are invaluable to debug these cases. to enable the feature, you need to edit your photonserver. config. set the instance-attribute "producedumps" to true and restart the server. if the server crashes, the related information cannot be found in the log. Information. Photon can be configured as a dump file. Information that reflects the status and memory is very useful in debugging. To enable this feature, you need to edit photonserver. config. Set "producedumps" to true and restart the server. It might look like this example: The following is an example:
default enableperformancecounters = "true" datasendingdelaymilliseconds = "50 " acksendingdelaymilliseconds = " 50 " minimumtimeout = "5000" maximumtimeout = "30000" producedumps = "true"
This will write up to 10 "full" dump files. once a dump file is written, you can zip it with the logs and mail it to us with a description of the issue. in most cases, we will get in touch with you to get more information and solve the case. this will write the complete dump file. Once a dump file is written, you can compress it and send an email to us. In most cases, we will answer your questions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.